home *** CD-ROM | disk | FTP | other *** search
- Return-Path: LISTSERV@DARTCMS1.DARTMOUTH.EDU
- Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
- with SMTP id AA09574; Mon, 10 Oct 94 12:08:09 -0500
- Message-Id: <9410101708.AA09574@lks.lks.csi.com>
- Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
- (IBM VM SMTP V2R2) with BSMTP id 1509; Mon, 10 Oct 94 13:20:05 EDT
- Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
- DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 1485; Mon,
- 10 Oct 1994 13:11:42 -0400
- Date: Mon, 10 Oct 1994 13:11:04 -0400
- From: BITNET list server at DARTCMS1 (1.8a)
- <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
- Subject: File: "MACSCRPT LOG9409"
- To: F Terry <pfterry@lks.csi.com>
-
- =========================================================================
- Date: Thu, 1 Sep 1994 07:33:18 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jaime Prilusky <lsprilus@INHERIT1.WEIZMANN.AC.IL>
- Subject: FaceSpan XCMD's ?
-
- How to teach FaceSpan to use XCMD's ?
-
- I have a bunch of useful XCMD's and XFNC's that I would like to use
- (without too much work) with FaceSpan.
-
- Any suggestion?
-
- Thank you in advance,
- --
- Dr Jaime Prilusky, Head ! lsprilus@weizmann.weizmann.ac.il
- Bioinformatics Unit ! lsprilus@bioinformatics.weizmann.ac.il
- Dep. of Biological Services !
- Weizmann Institute of Science ! fax: 972-8-344113
- 76100 Rehovot - Israel ! tel: 972-8-343456
- =========================================================================
- Date: Thu, 1 Sep 1994 08:20:47 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: ScriptServer
-
- >Here's a sample script which will compile a text file with ScriptServer:
-
-
- >You'll need to spruce it up. It should be straightforward to write a
- >#include script like we did in MPW.
-
- Is it any way to use the ScriptServer for a non MPWer ? Scripter? How?
-
- thanks,
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Thu, 1 Sep 1994 08:26:12 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: AppleScript control statements
-
- HyperTalk does have a "next repeat" statement.
- One can combine appleScript with hypertalk eventually...
-
- judith
- =========================================================================
- Date: Thu, 1 Sep 1994 08:30:33 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: Is Fetch scriptable (additional comments)
-
- >You could use the Commercial Developer suite to create
-
- Excuse me, what is that suite and where it is, for whom is it?
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Thu, 1 Sep 1994 07:29:36 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Re: Script examples for BBEdit 3.0?
-
- I asked:
- >> I have just begun a project in which I will parse several 1-2 mbyte
- >>files (output of a VAX/VMS database search) into tab-delimited text for
- >>inclusion in a Filemaker Pro-type database. It seemed to me that
- >>Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
- >>this.
-
- And I got several answers along these lines:
- >Perhaps using awk or perl might be more appropriate.
-
- Thanks for the suggestions, and I'll look into trying these out (how is
- something like Perl different than BBEdit's grep?)
-
- Even while I am looking into this, though, my original question still
- stands: does anyone have any sample scripts for BBEdit? I must admit that
- at this point, my attachment to BBEdit is sentimental, as I did an earlier
- version of this database project using BBEdit 2.5 and QuicKeys -- besides,
- they're paid for :-). Scriptable Text Editor would do the job, except for
- that pesky 32 K size limit.
-
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Thu, 1 Sep 1994 07:25:49 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: AppleScript control statements
-
- >Does AppleScript have a command that is the equivalent of the "continue"
- >statement in C? It seems like a major thing to leave out.
- >
- >repeat with i from 1 to 10
- > blah blah blah
- > if false then
- > skip to the top of the loop --This is what I want to do!
- > blah blah blah blah
- >end repeat
- >
- >
- >Do I have to do it recurvesively?
-
- What?
-
- No, you have to do it conditionally!
-
- Actually, this is yet another use for try/error
-
- repeat with i from 1 to 10
- try
- if i is 5 then
- error "continue" number 1000 -- signal a script error
- end if
- log i -- for testing, look in the event log
- on error str number num
- if num is not 1000 then
- -- a real error happend, do something
- end if
- end try
- end repeat
-
- You'll see that number 5 is skipped in the event log.
-
- You can also exit from a repeat loop (like break in C)
- repeat with i from 1 to 10
- if i is 5 then
- exit repeat
- end if
- end repeat
- i -- this is 5
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Thu, 1 Sep 1994 09:51:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Poorman <poorman@CONVEX.COM>
- Subject: Re: Launching Eudora
-
- >I use Eudora constantly to download mail while I'm gone, via the Comm.
- >Toolbox. When I get home, however, I like to log on to my PPP account, and
- >open the "standard" set of PPP apps. I'm writing a simple script to
- >automate these things, but I've run into a problem with Eudora [...]
-
- It's not a complete solution, but the following will switch Eudora between
- MacTCP, Comm. ToolBox, and OffLine.
-
- -- MacTCP
- tell application "Eudora"
- set setting 84 to "n"
- set setting 27 to "n"
- end tell
-
- -- Comm. ToolBox
- tell application "Eudora"
- set setting 84 to "n"
- set setting 27 to "y"
- end tell
-
- -- Off Line
- tell application "Eudora"
- set setting 84 to "y"
- end tell
-
- (These numbers were gleaned from the "Eudora Q&A" Hypercard stack.)
-
-
- If you set the recheck interval to zero (to avoid checking before you can
- set the settings) you could get it to check periodically using an
- AppleScript or, better, with the ShareWare "NotifyMail".
-
- -- Pete
- =========================================================================
- Date: Thu, 1 Sep 1994 08:37:36 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Is Fetch scriptable (additional comments)
-
- >>You could use the Commercial Developer suite to create
- >
- >Excuse me, what is that suite and where it is, for whom is it?
-
- The Commercial Developer suite ships with Frontier. Look in the Suites
- folder inside your Frontier folder...it is called suites.commercial. As
- usual, you install the suite by double-clicking that file...that adds a
- "Commercial Developers" command to your Frontier Suites menu. Selecting
- that command adds a Glue menu.
-
- The suite began life as a helper for developers in producing install
- ("glue") files for their applications...hence the naming. Over time, one
- significant enhancement was the development and refinement of the 'aete'
- resource parser which is part of the suite (when Frontier came out, that
- was a non-issue...the glue had to be hand built because AppleScript was
- still more than a year away).
-
- The current 'aete' parser does a pretty good job of representing the
- scripting terminology [as represented by the 'aete'] of an application in
- the form of "glue" scripts...optional parameters were added to Frontier 3.0
- to help with the process.
-
- Some hand-tuning is often still needed, simply because many 'aete'
- resources don't fully represent the scripting support offered by an
- application (there are some things which can't be represented in the
- 'aete', and some cases where developers don't produce the best possible
- 'aete' for their app).
-
- To explore the suite, you should essentially start at the top of the Glue
- menu and work down (pick a name for the app which is a legal Frontier table
- name...that makes scripting easier: for the app "My App", you might use
- "myApp").
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- When was the last time you checked out the ceiling tiles in a building you
- were in?
- =========================================================================
- Date: Thu, 1 Sep 1994 09:35:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: ScriptServer
-
- >Is it any way to use the ScriptServer for a non MPWer ? Scripter? How?
-
- Anything that can use ToolServer, I presume.
-
- Try BBEdit (even as far back as 2.2), THINK Project Manager, ObjectMaster.
-
- BBEdit is probably your best bet, but unless you are already have "MPW
- brain damage" :-) you might not find SendAE and ScriptServer that much fun,
- especially compared "normal editing". The advantages would come in group
- projects with version control, and make files, and build scripts!
-
- This is not to say that it isn't useful for those of us who already have
- "MPW brain damage" and who work in larger groups!
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Thu, 1 Sep 1994 11:19:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Sean Elfstrom <selfstro@CS.TRINITY.EDU>
- Subject: Re: Script examples for BBEdit 3.0?
- In-Reply-To: <no.id> from "Clinton MacDonald" at Sep 1, 94 07:29:36 am
-
- >
- > I asked:
- > >> I have just begun a project in which I will parse several 1-2 mbyte
- > >>files (output of a VAX/VMS database search) into tab-delimited text for
- > >>inclusion in a Filemaker Pro-type database. It seemed to me that
- > >>Applescript and the new scriptable BBEdit 3.0 would be the ideal way to do
- > >>this.
- >
- > And I got several answers along these lines:
- > >Perhaps using awk or perl might be more appropriate.
- >
- > Thanks for the suggestions, and I'll look into trying these out (how is
- > something like Perl different than BBEdit's grep?)
- >
- > Even while I am looking into this, though, my original question still
- > stands: does anyone have any sample scripts for BBEdit? I must admit that
- > at this point, my attachment to BBEdit is sentimental, as I did an earlier
- > version of this database project using BBEdit 2.5 and QuicKeys -- besides,
- > they're paid for :-). Scriptable Text Editor would do the job, except for
- > that pesky 32 K size limit.
- >
- > Clint
- >
-
- I have a script or two that I wrote for BBEdit to move mail headers from
- the end of AOL mail files to the beginning, so that I could read them
- in Eudora. I'll send you a copy, if you'd like, but it might be a day or
- two until I can get around to it. We just started school again, so
- things are kind of hectic around here. If you don't receive them
- by Monday, just drop me a reminder.
-
- BTW, BBEdit Scripting is kind of tricky, and unless you have a fast
- machine, it is going to take a while to work with files that large.
- The files I was working with were only 25K or so, and on my SE/30, it
- was pretty slow.
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- 10819 Auldine | selfstro@cs.trinity.edu
- San Antonio, TX 78230 | http://www.cs.trinity.edu/~selfstro/
- (210) 341-4624 | PGP Key available via finger
- =========================================================================
- Date: Thu, 1 Sep 1994 13:09:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Klaus P. Fechner" <klaus@SPARKY.RAD.MED.UMICH.EDU>
- Subject: Re: Launching Eudora
-
- >If you set the recheck interval to zero (to avoid checking before you can
- >set the settings) you could get it to check periodically using an
- >AppleScript or, better, with the ShareWare "NotifyMail".
-
- ... or with the freeware "MacBiff" (which works great for me!)
-
- ------------------------------------------------------------------------
- Klaus P. Fechner<klaus@sparky.rad.med.umich.edu> VAMC Palo Alto, CA, USA
- =========================================================================
- Date: Thu, 1 Sep 1994 17:40:20 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: zip <zip@KNOWARE.NL>
- Subject: Re: Launching Eudora
-
- Hi! I'm completely new to Eudora, internet @ stuff.. Could you be a litlle
- more specific about unattended downloading of e-mail, I'M using an ARA 2.0
- connection and Eudora, but Eudora seems to be unable to launch ARA, log in,
- get my mail (if any), and log out again for a repeating interval of say an
- hour. Is Eudora scriptable? Could you send me an example of how to
- accomplish this?
- Where can I get more detailed info about Eudora or other scriptable e-mail
- programs?
- I guess these are stupid questions, but sorry, this is all new for me.
- Please help. Thanks, Zip.
- =========================================================================
- =========================================================================
- Date: Tue, 6 Sep 1994 10:20:04 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Kost <kost@NETAXS.COM>
- Subject: FileMaker Pro & copying Text field.
-
- Greetings
-
- I just subscribed to this group last week and havent seen
- much traffic on it. So if this problem has been hashed out,
- please tell me about when it was and I'll try to find it
- in the archives... Thanks
-
- And now for something completely different %*)
-
- - AppleScript 1.1 and FileMaker Pro 2.1v1
-
- I dont have my script in front of me so
- the script is not 100% accutate. Sorry.
-
- Here's the situation:
-
- - Two database files: DB1 and DB2
- - I want to simply copy the current
- active record in text field "fieldName" in DB1
- to text field "fieldName" in DB2
-
- - script:
- tell application filemakerPro
- copy cell "fieldName" of database DB1 to TEMP
- copy TEMP to cell "fieldNName" of database DB2
- end tell
-
- - results:
- this works fine for almost all situations EXCEPT
- when the text field it is copying is a text field with
- a carriage return/Line feed(CR). The Field that I
- am copying into will only get the text up to the CR.
- ????
-
-
- Any Suggestions
-
- Mike
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Michael R. Kost
- kost@netaxs.com
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- Help, I'm a rock!!!
- Frank Zappa
- =========================================================================
- Date: Mon, 5 Sep 1994 17:32:18 -1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
- Subject: ANNOUNCEMENT: AliasExpander script for Eudora
-
- Greetings all,
-
- I have just finished an AliasExpander script for use with AppleScript 1.1
- and Eudora 1.5 beta.
-
- AliasExpander expands Eudora aliases and nested aliases in the "To:"
- field of the message you are composing.
-
- It is especially handy if used with a utility such as OtherMenu,
-
- To recieve AliasExpander, send me a message with a subject line or body
- that contains "Send me AliasExpander" (case insensitive). A reply will
- be automatically generated by Eudora.
-
- Happy scripting,
- Peter Hinely
- =========================================================================
- Date: Tue, 6 Sep 1994 12:24:15 +1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Parry <dparry@OZEMAIL.COM.AU>
- Subject: Re: Launching Eudora
-
- zip <zip@KNOWARE.NL> wrote:
- > ...but Eudora seems to be unable to launch ARA, log in,
- As far as I knew Eudora only works with TCP, (but I'm probably wrong...)
-
- > Is Eudora scriptable? Could you send me an example of how to
- >accomplish this?
- Have you actually got Applescript installed, and the latest version of Eudora?
-
- >Where can I get more detailed info about Eudora or other scriptable e-mail
- >programs?
- Probably eudora-info@qualcomm.com would be a good place to start? and the
- FTP site for qualcomm
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > dparry@ozemail.com.au Voice: + 61 7 356 7645 <
- > The System Fax: + 61 7 356 7790 <
- > 46 Lansdowne Street DJP Mobile: 015 150 939 <
- > Wilston QLD 4051 MJE Mobile: 018 732 521 <
- > Australia <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > You could get run over by a bus tomorrow... go on... have a fag! <
- > <
- > \@\ <
- > /@@/ <
- > \@@@\ <
- > \@@@/ <
- > \@\ <
- > |#|00000000000))) <
- > <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- =========================================================================
- Date: Tue, 6 Sep 1994 09:59:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: mail missing...
- In-Reply-To: Your message of "Tue, 06 Sep 94 09:54:12 BST"
-
- > Since Sat, 3rd sept I do not get the mail from the mailing group!
- > what is happening?
- > X
-
- I checked with David Avery (the listserv god at Dartmouth). He tells me that
- the MacScripting list was set to hold due to a disk-related error. He says
- that it's set to free now, so we should begin seeing messages.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Tue, 6 Sep 1994 11:29:00 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Thomas <jthomas@PLUTO.NJCC.COM>
- Subject: Re: ANNOUNCEMENT: AliasExpander script for Eudora
-
- whats you address? The headers only have the macscript address..
- =========================================================================
- Date: Tue, 6 Sep 1994 08:35:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Launching Eudora
-
- David Parry said:
- > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > ^
- > > dparry@ozemail.com.au Voice: + 61 7 356
- > > 7645 < The System F
- > > ax: + 61 7 356 7790 < 46 Lansdowne Street
- > > DJP Mobile: 015 150 939 < Wilston QLD 4051
- > > MJE Mobile: 018 732 521 < Australia
- > > <
- > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > ^
- > > You could get run over by a bus tomorrow... go on... have a
- > > fag! <
- ^^^
-
- Uhh, dontcha love regional dialects?
-
- (Hint: the word 'fag' has very different meanings in the US and in Australia)
-
- -roy
- =========================================================================
- Date: Tue, 6 Sep 1994 11:12:14 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: READ CAREFULLY: Newsgroup Poll
-
- Everyone,
-
- The polls officially closed last Wednesday at midnight, so I thought you might
- be interested in the swing of opinion. With just over 132 replying (on a list
- of
- 806), here are the results.
-
- Should I begin the process of creating a newsgroup?
-
- 74 said yes
- 43 said no
- 4 said they didn't care
-
-
- Should the mailing list be maintained and gatewayed?
-
- 87 said yes
- 29 said no
- 7 said they didn't care
- 8 made comments that they do not want the list gatewayed, but do
- want it to continue
-
-
- I can look at these votes a couple of different ways:
- 74 of 132 people are in favor of creating a newsgroup
- 74 of 806 people are in favor of creating a newsgroup
- And I can't ignore the fact that 87 of those 132 people want to keep the
- mailing list no matter what happens.
-
- I checked the Guidelines for creating a newsgroup, and we must have 100 more
- yes votes than no votes to create a newsgroup. Or 2/3rds of the votes must be
- in favor of creating a newsgroup. Here's the appropriate section:
-
- 3) AFTER the waiting period, and if there were no serious objections that
- might invalidate the vote, and if 100 more valid YES/create votes are
- received than NO/don't create AND at least 2/3 of the total number of
- valid votes received are in favor of creation, a newgroup control
- message may be sent out. If the 100 vote margin or 2/3 percentage is
- not met, the group should not be created.
-
- You can see that our little internal poll misses the mark on both counts.
- Let's consider a couple of additional facts. I checked the stats for the
- mailing list this morning, and we are averaging 16 messages/day. I also
- checked the number of questions posted to comp.sys.mac.programming for the
- month of July. In a quick and unofficial count, I found 14 messages devoted
- specifically to AppleScript or appleevents. There was a thread this
- last week in comp.sys.mac.system (What the hell is AppleScript good for?) and
- it had 18 some messages in the thread, but that's an unusual case.
-
-
- My conclusions: I think the small number of those that voted makes it null and
- void. I'm not sure that we could get a newsgroup through the Request For
- Discussion and Call For Votes process with so few votes. I also wonder about
- the validity of creating a newsgroup when most of the people that wanted one
- also wanted me to maintain the mailing list. We can have it both ways, but we
- will all have to make sacrifices of one kind or another: the newsgroup won't
- look like the list, and the list won't be the same if there is a gateway.
-
- Having said that, I will recant a bit. At least one of the people who voted
- pointed out that I didn't attach my signature. This could have made it hard
- for people to reply.
-
- So if you haven't voted and want to, send me a message before the end of the
- week (I'm appending the form). If I don't get many additional votes, I think
- we should table the creation of a newsgroup for a couple of months. I don't
- want to start something that is going to fail during the RFD and CFV process.
-
- pf
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
-
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~cut here~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- ____ Yes
-
- ____ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- ____ Yes
-
- ____ No
- =========================================================================
- Date: Tue, 6 Sep 1994 11:33:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rob Dewhirst <robd@FARALLON.COM>
- Subject: PowerTalker 1.0 sent to gaea
-
- I've uploaded Sean McMains PowerTalker scriptable app to gaea. PowerTalker
- will read your incoming PowerTalk mail to you.
-
- Now through the combination of PowerTalk, AppleScript, the Speech Manager,
- and PowerTalker, you can get up in the morning and say "Computer, read my
- incoming messages." :)
-
- It's freeware, and it works quite well.
-
- (Now if someone would write a decent PowerTalk mailer...)
- =========================================================================
- Date: Tue, 6 Sep 1994 13:43:40 -0300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Eudora 2.1 and "sender"
-
- Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
- "sender" email address of messages in the inbox:
-
- set msgFrom to sender of message i of mailbox "In" of mail folder ""
-
-
- doesnt work, as you get the "sender" as it appears in the "who" column,
- which is not usually the email address. Does anyone know how to get the
- actual email address of the sender?
-
-
- thanx
-
- - bill
-
-
- | Bill Hutten - bhutten@fox.nstn.ns.ca
- | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6 (902) 453 2482
- | "Hard to love, when you're bracing for impact." - Martin Amis
- =========================================================================
- Date: Tue, 6 Sep 1994 12:57:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Harold D. Levin" <Harold_Levin@NCSU.EDU>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- __X_ Yes
-
- ____ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- ____ Yes
-
- __X_ No
-
-
-
- =============================================================================
- Harold D. Levin
- Department of Philosophy and Religion office (919) 515-6333
- Box 8103 fax (919) 515-7856
- North Carolina State University at Raleigh
- Raleigh NC 27695-8103
- =============================================================================
- =========================================================================
- Date: Tue, 6 Sep 1994 12:10:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: PowerTalker 1.0 sent to gaea
- In-Reply-To: Your message of "Tue, 06 Sep 94 11:33:17 PDT"
-
- >I've uploaded Sean McMains PowerTalker scriptable app to gaea. PowerTalker
- >will read your incoming PowerTalk mail to you.
- >
- >Now through the combination of PowerTalk, AppleScript, the Speech Manager,
- >and PowerTalker, you can get up in the morning and say "Computer, read my
- >incoming messages." :)
-
- Thanks, Rob. Everyone, you'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/PowerTalker10.sit.hqx
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Tue, 6 Sep 1994 10:26:10 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- _____ Yes
-
- __X__ No
-
-
- Should the mailing list be maintained and messages gatewayed to
- the newsgroup and vice versa.
-
- __X_ Yes
-
- ____ No
- =========================================================================
- Date: Tue, 6 Sep 1994 10:38:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
- Subject: scriptable graphics conversion
-
- Your help would be greatly appreciated:
-
- I have set up scripts to run an Apple Quicktake camera from a Macintosh
- http server. It works fine, except that I haven't found a (scriptable) way
- to convert the Quicktake PICT format (which uses Quicktime and Quicktake
- extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
- HTML browser.
-
- Does anybody know of a scriptable graphics program which would do a PICT to
- GIF conversion? Apple's PhotoFlash won't get me there unless I can find an
- appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
- (which is scriptable!) won't convert formats.....
-
- thanks,
-
- bill
-
- <pre>
- William J. Proffer
- Senior Staff Scientist
- Test Technology Group
- S-Cubed, A Division of Maxwell Labs
- 3398 Carmel Mountain Road
- San Diego, CA 92038-1095
- (619) 453-0060
- (619) 755-0474 (fax)
- proffer@scubed.com
- World Wide Web URL: http://www.scubed.com:8001/
- </pre>
- =========================================================================
- Date: Tue, 6 Sep 1994 14:17:20 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Kost <kost@NETAXS.COM>
- Subject: FileMaker Pro Text Field & AppleScript
-
- Hi
-
- I sent this out earlier, must have put the incorrect
- mail address. If you got two of these messages - sorry -
-
- mike
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-
- Greetings
-
- I just subscribed to this group last week and havent seen
- much traffic on it. So if this problem has been hashed out,
- please tell me about when it was and I'll try to find it
- in the archives... Thanks
-
- And now for something completely different %*)
-
- - AppleScript 1.1 and FileMaker Pro 2.1v1
-
- I dont have my script in front of me so
- the script is not 100% accutate. Sorry.
-
- Here's the situation:
-
- - Two database files: DB1 and DB2
- - I want to simply copy the current
- active record in field "fieldName" in DB1
- to the same field "fieldName" in DB2
-
- - script:
- tell application filemakerPro
- copy cell "fieldName" of database DB1 to TEMP
- copy TEMP to cell "fieldNName" of database DB2
- end tell
-
- - results:
- this works fine for almost all situations EXCEPT
- when the field it is copying is a text field with
- a carriage return/Line feed(CR). The Field that I
- am copying into will only get the text up to the CR.
- ????
-
-
- Any Suggestions
-
- Mike
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Michael R. Kost
- kost@netaxs.com
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- Help, I'm a rock!!!
- Frank Zappa
- =========================================================================
- Date: Tue, 6 Sep 1994 14:41:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
- In-Reply-To: <no.id> from "Roy S. Rapoport" at Sep 6, 94 10:26:10 am
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- _X___ Yes
-
- ____ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- __X__ Yes
-
- ____ No
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- 10819 Auldine | selfstro@cs.trinity.edu
- San Antonio, TX 78230 | http://www.cs.trinity.edu/~selfstro/
- (210) 341-4624 | PGP Key available via finger
- =========================================================================
- Date: Tue, 6 Sep 1994 13:16:28 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Speck <speck@DAT.RUC.DK>
- Subject: Re: scriptable graphics conversion
-
- >Your help would be greatly appreciated:
- >
- >I have set up scripts to run an Apple Quicktake camera from a Macintosh
- >http server. It works fine, except that I haven't found a (scriptable) way
- >to convert the Quicktake PICT format (which uses Quicktime and Quicktake
- >extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
- >HTML browser.
- >
- >Does anybody know of a scriptable graphics program which would do a PICT to
- >GIF conversion? Apple's PhotoFlash won't get me there unless I can find an
- >appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
- >(which is scriptable!) won't convert formats.....
-
- DeBabelizer. 1.5.5 is some sort of script able.
- You can send a "DoScript" command to it. It uses its own very weird script
- language, but is recordable, and can convert the recorded scripts to
- AppleScript.
-
- One hint: sometimes it ignores the filename when saving, so I am always
- saving files as "Untitled" and the renames afterwards.
-
- I have been using it for doing some www stuff to the Lollapalooza.
-
- ---
- Peter Speck
- (And it was eleven o'clock
- which was time for a little something)
- =========================================================================
- Date: Tue, 6 Sep 1994 13:36:48 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Mark B. Ballard" <ballard@MDHOST.CSE.TEK.COM>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
- In-Reply-To: Your message of Tue,
- 06 Sep 94 11:12:14 -0500. <9409061615.AA30742@inet1.tek.com>
-
- Should I begin the process of creating a MacScripting newsgroup?
-
- _X___ Yes
-
- ____ No
-
-
- Should the mailing list be maintained and messages gatewayed to the newsgroup
- and vice versa.
-
- ____ Yes
-
- _X___ No
-
- --
- =========================================================================
- Date: Tue, 6 Sep 1994 13:44:58 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Erik Smith <ersmith@UCSD.EDU>
- Subject: Sending commands to Remote Finder problems
-
- I'm tring to find a good way to launch scripts remotely. I've been
- experimenting with scripts that talk to remote macs using program linking.
-
-
- The main problem is that AppleScript commands get their target from the
- tell statement like in this command to a remote mac:
-
- tell application "Finder" of machine "pm6100 #1" of zone "Computer Lab"
- open file "simpletext" of startup disk
- end tell
-
- When I open this script in the Script Editor, it immediately tries to log
- in to the remote mac and read the target's dictionary (I think). I dont
- know how to write commands that know their target but don't go looking for
- the application. If I'm writing a script that is going to log into 30 macs
- in a row, I dont want to get 30 login prompts. Does anyone know of a
- scriptable program that just launch applications remotely?
-
- I've also tried using script daemon and driving it with the TCPIP osax, but
- I can't seem to drive the telnet session with the osax (something I doing
- wrong probably) and driving it with Sitcomm/TGE TCP Tool also seems
- problematic (Sitcomm wont quit with the TGE TCP tool, I have to crash it)
-
- Apparently, the PPC toolbox tries to remember a link that has been opened
- and does not require you to fill in a second login screen when you access
- the link. How do I "log out" of this link?
-
- Another problem is that if I hit Cancel on the login screen, the Script
- stops working: it does not prompt me for the login screen again and it
- starts complaining about the commands within the tell statement. The
- script refuses to work even when I re-write and compile the script in a new
- file.
-
- One thing that is interesting is that I've always heard that Apple
- intentionally disabled remote application launching, but with the new
- scriptable finder, which is always open, you can ask it to launch
- applications using the open command.
-
-
- -Erik
- =========================================================================
- Date: Tue, 6 Sep 1994 17:13:16 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: control statements
-
- On 8/31/94, Lawrence D'Oliveiro wrote:
-
- > that also lacks gotos and a "continue" statement, and I can write
- > clean, uncontorted code without feeling the need for either.
-
- Oh, but how I miss call-with-current-continuation...
-
- (Yeah, yeah, I *do* know how it's really spelled. <grin>)
-
- ~ Kiran <groo@netcom.com>
- =========================================================================
- Date: Tue, 6 Sep 1994 14:48:55 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: James Lane <lanej@U.WASHINGTON.EDU>
- Subject: learning apple script
- In-Reply-To: <9409062026.AA01905@mx3.u.washington.edu>
-
- Could someone recommend a book about applescript, or else share what
- resources you used to learn applescript.
-
- TIA!
-
- A newbie scripter...
- james lane
- university of washington
- office of technology transfer
- lanej@u.washington.edu
- =========================================================================
- Date: Tue, 6 Sep 1994 15:47:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: learning apple script
-
- James Lane wrote:
-
- > Could someone recommend a book about applescript, or else share what
- > resources you used to learn applescript.
-
- I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- the big toad in terms of usefulness). Eventually I got a copy of the
- AppleScript Language Reference, but until then, I learned it the hard way --
- I was working on a project for work to develop a group (3) of scripts to
- automate our backup procedures, and I used the 'Open Dictionary' and trial
- and error *VERY* often :)
-
- -roy
-
- Roy S. Rapoport rsr@berksys.com
- 510-540-5535 ext. 280 Fax: 510-540-5630
- I speak for the Pope, the President of the United States,
- and all sentient beings everywhere, other than those at
- Berkeley Systems Incorporated.
- =========================================================================
- Date: Tue, 6 Sep 1994 20:38:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jonathan Bauer <jhbauer@PANIX.COM>
- Subject: Re: MacPGP scripts
-
- >Hi all,
- > I've just finished my addition to the MacPGP <-> Eudora universe,
- >and would like to find some hardy souls to try and break it!
- > I have a MacPGP.lib (24K) and an Encrypt the out basket script
-
- [snip]
- > Drop me a line for more info & I'll send you the package.
- >
-
- That would be great! I've got Eudora 2.1fc2 so, if you don't mind (and if
- it's necessary) I'll try my hand at modifying your scripts for same and
- pass the results along, if I can make it work.
-
- TIA,
-
- /jonathan
-
- ----------------------------------
- Jonathan Bauer <jhbauer@panix.com>
- 440 W. 41st St. #202
- N.Y. N.Y. 10036
- +1 212-239-5158
- =========================================================================
- Date: Tue, 6 Sep 1994 20:59:31 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: learning apple script
- In-Reply-To: <199409062357.QAA27383@mail2.netcom.com>
-
- On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
-
- > I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- > the big toad in terms of usefulness).
-
- Not to take this personally or anything, but do keep in mind that Tao was
- _specifically_ designed to teach AppleScript to people who don't know
- anything about programming (literally, we used our publications person's
- mother as the acid test). I have always been the first to recommend
- either Danny's book or (now) the AS Reference for people who are more
- experienced.
-
- We weren't trying to be extremely technical and cover every single
- possible aspect of AS; we were trying to get people started with it,
- especially those who had never programmed before.
-
- Okay, so maybe I took it a _little_ personally :)
-
- Derrick Schneider
- Author, The Tao of AppleScript
- =========================================================================
- Date: Tue, 6 Sep 1994 22:03:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: learning apple script
-
- Derrick Schneider wrote:
-
- > On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
- >
- > > I used, initially, the Tao of AppleScript (which, in technical
- > > terms, sucked the big toad in terms of usefulness).
- >
- > Not to take this personally or anything, but do keep in mind that Tao
- > was _specifically_ designed to teach AppleScript to people who don't know
- > anything about programming (literally, we used our publications
- > person's mother as the acid test). I have always been the first
- > to recommend either Danny's book or (now) the AS Reference for people
- > who are more experienced.
- >
- > We weren't trying to be extremely technical and cover every
- > single possible aspect of AS; we were trying to get people started with
- > it, especially those who had never programmed before.
-
- Uhh, let me rephrase ... :)
-
- the TofA, for me, sucked. It taught me how to do 2+2 in AS and introduced
- the basic concepts of AS, but AS A REFERENCE MANUAL IT SUCKED.
-
- Now, obviously it's supposed to suck, as Derrick says above -- it's not
- supposed to be a reference manual. As something to introduce people who get
- a stroke when thinking of opening a control panel to AppleScript, it's
- superb. Good job. It's just that I've mucked with my mac long enough, and
- am confident (well, arrogant) enough to think I know what I'm doing, so the
- TofA sucked for my purposes.
-
- By all means, get it if you're new to AppleScript, programming, and standard
- text editing. It's a great book.
-
- Any better, Derrick? :)
-
- (seriously, it's a good introduction, I guess)
-
- -roy
- =========================================================================
- Date: Wed, 7 Sep 1994 01:01:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: ANNOUNCEMENT: AliasExpander script for Eudora
-
- At 10:32 PM 05.9.94, Pete Hinely wrote:
- >To recieve AliasExpander, send me a message with a subject line or body
- >that contains "Send me AliasExpander" (case insensitive). A reply will
- >be automatically generated by Eudora.
- >
-
- I noticed in your README that you have other scripts as well...and I
- received a reply to (but not the original of) your post(?) about PGP
- scripts for Eudora. Is there any way I can get any of your other scripts?
- I'm just getting into scripting, and Eudora scripts have been the most
- helpful I've seen for getting a feel for the power and the syntax of the
- language...
-
- Cheers,
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Tue, 6 Sep 1994 22:52:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: learning apple script
-
- With respect to "Tao", it is important to be sure you are picking up the
- Second Edition, not the first, if you decide Tao is right for you. (I
- don't think I'll hurt Derrick's feelings with that remark, but if so he is
- invited to say so.)
-
- And with respect to "Handbook" ("handbook" is a synonym for "Danny"), it
- might pay to await the upcoming second edition (which would suggest using
- 2nd Tao for now).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 6 Sep 1994 23:11:32 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: scriptable graphics conversion
-
- >and the fine program "GraphicConverter"
- >(which is scriptable!) won't convert formats.....
-
- Hmmm I 've used GraphicConverter 1.7.6-2.0 to do just this (you have to
- reduce 24bit picts to 8bit before it will let you save as GIF) without
- applescipt though. But I wasn't able find a library, is it scriptable and
- if so where is some documentation. I use QuickKeys now to batch convert
- 24bit PICTs -> 8bit GIFs.
-
- PS though it is not part of my commute I can't wait to see realtime pics of
- "The Merge".
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 6 Sep 1994 23:41:35 MST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: 103t_english@WEST.CSCWC.PIMA.EDU
- Subject: Re: MACSCRPT Digest - 1 Sep 1994 to 6 Sep 1994
-
- RE: Newsgroup creation...
-
- SInce I get the digest form, I didn't notice the informal discussion.
-
- You might want to consider THAT possiblity to.
-
- Count me as a "Yes" for newsgroup creation, and a "Yes" (for those with no
- newsgroup access) for maintaining the list...
-
- It is good enough for c.s.m.p.codewarrior, afterall...
-
-
-
- Lawson D. English 103T_ENGLISH@west.cscwc.pima.edu
-
- -INSERT INFORMATIVE AND WITTY MESSAGE HERE-
-
- West Campus Internet Class of 1994
- =========================================================================
- Date: Wed, 7 Sep 1994 00:30:25 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Inheritance in Scripts
-
- Since we were just talking about script object inheritance, I thought I
- would mention that there is an interesting article in Develop 19 by Paul
- Smith of Full Moon Software describing how to do dynamic script inheritance
- in a program like FaceSpam and/or Hypercard. It has some interesting stuff
- in it regarding attachability and inheritence.
-
- The only problem I found was that it was all from a C implementation point
- of view, so I tried doing some script code to do some of the same stuff and
- found out why. It doesn't work from scripts. Bummer.
-
- The crux is that you can't access the parent property of a script object
- directly.
-
- For example, this works:
-
- script foo
- on frozz()
- beep
- end frozz
- end foo
-
- script bar
- property parent : foo
- on run
- frozz()
- end run
- end bar
-
- tell bar to run
-
- But this doesn't:
-
- script foo
- on frozz()
- beep
- end frozz
- end foo
-
- script bar
- on run
- frozz()
- end run
- end bar
-
- set bar's parent to foo -- fails
- tell bar to run
-
- It appears that parent is a special property. Bummer. It's time for an
- osax to fix this thing and provide dynamic parent capabilities. Donald
- Olson has already written such a beast but he didn't think to handle this
- special case, so I've reminded him and will post his osaxen when he has
- finished them. He already has a collection of osaxen that I should
- probably post. It includes osaxen to get & set script properties and
- handlers, one to set the current Standard File directory and one to check
- the mouse status (location and button). I've mailed them to Fred in a
- seperate message.
-
- Jon
- =========================================================================
- Date: Wed, 7 Sep 1994 00:30:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
-
- >Subject: Re: READ CAREFULLY: Newsgroup Poll
- >
- >Should I begin the process of creating a MacScripting newsgroup?
- >
- >_X___ Yes
- >...
-
- I think the "READ CAREFULLY" part needs to be repeated. ;)
-
- Don't reply to the list. Mail them to Fred.
-
- Sheesh.
-
- Jon
- =========================================================================
- Date: Wed, 7 Sep 1994 00:30:58 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: scriptable graphics conversion
-
- W. J. Proffer <proffer@SCUBED.SCUBED.COM> wrote:
- >
- >I have set up scripts to run an Apple Quicktake camera from a Macintosh
- >http server. It works fine, except that I haven't found a (scriptable) way
- >to convert the Quicktake PICT format (which uses Quicktime and Quicktake
- >extensions) to a form (e.g., normal PICT or better, GIF) viewable within a
- >HTML browser.
-
- <uninvited impersonal GIF flames>
-
- Please, do me a favor. Never create another GIF file in your life. Use
- JPEG instead. You get a 24 bit file in the same space (or better
- compression if you are willing to sacrifice image details). GIF is only 8
- bits and you totally lose picture quality. The Macintosh has built in
- support for 24 bits, so use it. If you only have an 8 bit monitor, you
- can't even have 2 GIFs open at once without screwing up the palettes of all
- but 1 image. They are just lame relics of the past. Down with GIF!
-
- <sorry about that>
-
- >Does anybody know of a scriptable graphics program which would do a PICT to
- >GIF conversion? Apple's PhotoFlash won't get me there unless I can find an
- >appropriate PhotoShop PlugIn, and the fine program "GraphicConverter"
- >(which is scriptable!) won't convert formats.....
-
- You can write both a standard JPEG (aka JFIF) file and a QuickTime
- PICT-JPEG file (my personal preference). The simplest way is to record one
- and copy it into your script. Just do a Save As and then delete the "in"
- parameter after you paste. That'll make it save into the same file.
-
- Here's the command from memory (so it might be wrong):
-
- save as "PICT" in <file> using parameters {|Compression|:"Apple Photo-JPEG",
- |Quality|:"75"}
-
- Jon
- =========================================================================
- Date: Wed, 7 Sep 1994 17:58:39 +1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Parry <dparry@OZEMAIL.COM.AU>
- Subject: Fax Merging with Word/FaxSTF/Touchbase Pro
-
- I'm trying to automate a Fax merge whereby the data has originally been
- held in Touchbase Pro, merged in word 5.1A and then run through FaxSTF
- 2.6.1.
-
- I'm using Word because the 200DPI bitmaps that are in the document seem to
- come out fine through FaxSTF, whereas Touchbase Pro doesn't seem to support
- pasting pictures into Fastletters, and the layout of their fax headers is
- not the layout I want. Either way neither Word nor Touchbase know how to
- tell FaxSTF to address each generated merge item to a particular fax
- number.
-
- And of course Word 5.1a is not AppleScript aware as far as I can see...,
- neither is Touchbase Pro 3.0i (although 4.0 is... but no-one in Australia
- wants to sell it to me!).
-
- Has anyone got any suggestions? Perhaps a way of scripting the Fax Manager?
-
- I'm really not that keen on addressing 1079 faxes by hand!
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > dparry@ozemail.com.au Voice: + 61 7 356 7645 <
- > The System Fax: + 61 7 356 7790 <
- > 46 Lansdowne Street DJP Mobile: 015 150 939 <
- > Wilston QLD 4051 MJE Mobile: 018 732 521 <
- > Australia <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > You could get run over by a bus tomorrow... go on... have a fag! <
- > <
- > \@\ <
- > /@@/ <
- > \@@@\ <
- > \@@@/ <
- > \@\ <
- > |#|00000000000))) <
- > <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- =========================================================================
- Date: Wed, 7 Sep 1994 10:42:31 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Marco Strehler <strehler@FVMED.UNIZH.CH>
- Subject: Re: learning apple script
-
- >On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
- >
- >> I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- >> the big toad in terms of usefulness).
- >
- >Not to take this personally or anything, but do keep in mind that Tao was
- >_specifically_ designed to teach AppleScript to people who don't know
- >anything about programming (literally, we used our publications person's
- >mother as the acid test). I have always been the first to recommend
- >either Danny's book or (now) the AS Reference for people who are more
- >experienced.
- >
- >We weren't trying to be extremely technical and cover every single
- >possible aspect of AS; we were trying to get people started with it,
- >especially those who had never programmed before.
- >
- >Okay, so maybe I took it a _little_ personally :)
- >
- >Derrick Schneider
- >Author, The Tao of AppleScript
-
- I agree with Derrick! Even I am a experimented programmer I like the "tao".
- I have done my first AppleScript-steps with this book, and I like Derrick's
- way to teach.
-
- My background: I'm a medical student and so I'm used to read heavy
- technical books. Specially the german technical literature is often like
- walking in a desert.
-
- So I think: writing a readable newbie book needs more know-how as filling a
- telefon directory :-)
-
- Now, of course, I use the "AppleScript Language Guide" as reference.
-
- Sorry for my bad englisch :-)
-
- -- Marco
-
-
- ----------------------------------------------------------------
- Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
- VOICE: ++41 (0)1 810 27 03 INTERNET: strehler@fvmed.unizh.ch
- ----------------------------------------------------------------
- =========================================================================
- Date: Wed, 7 Sep 1994 11:47:41 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: learning apple script
-
- >Could someone recommend a book about applescript, or else share what
- >resources you used to learn applescript.
- >university of washington
-
- Is it washington DC or state of washington?
-
- Apple has published the AppleScript books in Adison Weslay, but I think
- you can too take from the gaeo - this groups disk place, take a lot of
- literature,
- hypercard stack, word format documents to start.
-
- For the begining at least. There are two books, but..
- And then test small scripts to begin.
-
- For real deep info there are Apple's Apda CD's, when it starts to be serious,
- they will be necessary.
-
- I go to washington DC in November, if I could help, if you are from there...
-
- Chaleureusement,
-
- Judith
- _________________________________________
- Judith Kertisz Suchard suchard@cnam.cnam.fr
- C.N.A.M. Labo Informatique AppleLink: cnam
- 25, rue Mont Cenis Tel:(1) 40 27 25 57
- 75018 Paris, France Fax: 40 27 27 72
- _________________________________________
- "La simpliciti, c'est le fruit d'un long effort"
- =========================================================================
- Date: Wed, 7 Sep 1994 12:15:10 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
- Subject: messages from FileMaker to Applets [Q]
-
- Dear colleagues:
-
- With the final goal of building
- "if <condition> then <script1> else <script2>"
- for FileMaker Pro I have tried to send events from FileMaker to AppleScript
- programs. The Applet "WaitForMessage" looks partly like this:
-
- on testMessage(theText)
- beep
- activate
- display dialog theText
- end testMessage
-
- and stays running in the background. When I send from the applescript
- editor the following stuff:
-
- tell application "WaitForMessage"
- testMessage("a test")
- end tell
-
- the message is dutifully displayed. But how can I send such a message from
- FileMaker? Applets don't seem to have aete-resources. They don't seem to
- handle <misc> <dosc>. What is the simple thing I have overlooked?
-
- Thanks for your help, greetings, Michael.
-
- Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
- D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
- =========================================================================
- Date: Wed, 7 Sep 1994 13:06:06 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Marco Strehler <strehler@FVMED.UNIZH.CH>
- Subject: Re: messages from FileMaker to Applets [Q]
-
- >But how can I send such a message from
- >FileMaker? Applets don't seem to have aete-resources. They don't seem to
- >handle <misc> <dosc>. What is the simple thing I have overlooked?
-
- Try this:
- Make in your FileMaker-Script a "Send AppleEvent" command and define an
- event class and an event id (e.g. "FMPr", "says") and a optional (field)
- value. As target application you must define an AppleScript-Applet with
- this handler:
-
- on <<event FMPrsay>> theText
- display dialog "FileMaker says: " & theText
- end <<event FMPrsays>>
-
- ( << and >> are double angle brackets. Decimal ASCII-Code 199 and 200)
-
- It's a hack, but it works :-)
-
-
- -- Marco
-
-
-
-
- ----------------------------------------------------------------
- Marco Strehler, Im Dreispitz 21, 8152 Glattbrugg (Switzerland)
- VOICE: ++41 (0)1 810 27 03 INTERNET: strehler@fvmed.unizh.ch
- ----------------------------------------------------------------
- =========================================================================
- Date: Wed, 7 Sep 1994 13:16:01 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
- Subject: Re: messages from FileMaker to Applets [Q]
-
- Lieber Marco:
-
- >stuff deleted
- >It's a hack, but it works :-)
-
- Funktioniert wunderbar, vielen Dank!
- Gruesse, Michael.
-
- Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
- D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
- =========================================================================
- Date: Wed, 7 Sep 1994 07:26:37 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Eudora 2.1 and "sender"
-
- >Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
- >"sender" email address of messages in the inbox:
- >
- > set msgFrom to sender of message i of mailbox "In" of mail folder ""
- >
- >
- >doesnt work, as you get the "sender" as it appears in the "who" column,
- >which is not usually the email address. Does anyone know how to get the
- >actual email address of the sender?
- >
-
- What you want is:
-
- set msgFrom to field "From" of message i of mailbox "In" of mail folder ""
-
- The 'field' can be any of the standard header fields:
- From
- Date
- ...
-
- >From the Dictionary:
- Class message: A message
- Elements:
- field by name *** this is what you want!!
- Properties:
- sender string -- the sender as appearing in the message summary
- ...
-
- Class field: An RFC 822 header field in a message (field named "" is the body)
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Wed, 7 Sep 1994 09:12:36 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John G Dorsey <jd5q+@ANDREW.CMU.EDU>
- Subject: Re: learning apple script
- In-Reply-To: <Added.0iPI7wu00UdbRfpk4m@andrew.cmu.edu>
-
- Excerpts from internet.computing.macscrpt: 6-Sep-94 Re: learning apple
- script by Derrick Schneider@NETCOM
- > Not to take this personally or anything, but do keep in mind that Tao was
- > _specifically_ designed to teach AppleScript to people who don't know
- > anything about programming
-
- Well, heck! I know C++, and I just finished learning Perl so I could
- complete my WWW server; I wouldn't have finished the damn thing if it
- weren't for TofA! Had to use AppleScript as the go-between for MacHTTP
- and MacPerl - Tao's one little example of reading the entire contents of
- a text file was well worth whatever 'shortcomings' were present in the
- rest of the book... incidentally, the Addison Wesley book (and all the
- Netted folks I asked) had nothing to say on this topic. =(
-
- $0.02
-
- Have fun,
- John Dorsey <jd5q+@andrew.cmu.edu>
- Carnegie Mellon University <jdo240@ohm.ece.cmu.edu>
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ftp://lightspeed.pc.cc.cmu.edu/
- http://lightspeed.pc.cc.cmu.edu/
- (under construction!)
- =========================================================================
- Date: Wed, 7 Sep 1994 15:25:46 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lutz Weimann <weimann@ZIB-BERLIN.DE>
- Subject: Re: Eudora 2.1 and "sender" / What does this mean?
-
- Sorry about my previous mail and thanks for you kind explanation about
- these elements of Eudora scripting.
-
- The reason why I sent this was, that my Eudora (2.0.3) or the POP-mailer
- here split up your message into two chunks, where the second chunk didn't
- had any mail-header and the from field in my in-box just appeared to be
- ???@??? - it was just the complete second chunck which I cited in my
- message before. The ???@??? really confused me, and later, I realized that
- there was a preceeding (first) chunck of this message. (Reading the second
- one before, I found your e-mail address only within your signature ...;-) )
- .
-
- The splitting problem was due to citing the following mail-headers within
- your message:
- >From
- >Date
- >...
- A simple method to prevent such splitting is to insert just a single space
- as the first character of cited header texts (like "From" or "Date").
-
- Kindly,
- Lutz Weimann
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Lutz Weimann INTERNET: weimann@zib-berlin.de
- Konrad-Zuse-Zentrum fuer X400: C=de;A=d400;
- Informationstechnik Berlin (ZIB) P=zib-berlin;S=weimann
- Heilbronner Str. 10 PHONE: +49 30 / 89604-185
- D-10711 Berlin-Wilmersdorf FAX: +49 30 / 89604-125
- =========================================================================
- Date: Wed, 7 Sep 1994 09:50:57 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: learning apple script
-
- >it might pay to await the upcoming second edition (AppleScript Handbook)
-
- It may not pay. That edition won't be out until we all are using new
- calendars.
-
- Danny
- =========================================================================
- Date: Wed, 7 Sep 1994 08:52:39 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: Eudora 2.1 and "sender"
-
- >Has anyone been using the new Eudora 2.1? I'm trying to retrieve the
- >"sender" email address of messages in the inbox:
- >
- > set msgFrom to sender of message i of mailbox "In" of mail folder ""
- >
- >
- >doesnt work, as you get the "sender" as it appears in the "who" column,
- >which is not usually the email address. Does anyone know how to get the
- >actual email address of the sender?
- >
- >
- >thanx
- >
- >- bill
- >
- >
-
- Have you tried
-
- set msgFrom to field "From" of ...
-
- ?
-
- --Tom
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "The city is a place where a small boy, as he walks
- Technology Facilitator through it, may see something that will tell him
- Glen Grove School what he wants to do his whole life."
- Glenview, Illinois --Louis I. Kahn
- E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Wed, 7 Sep 1994 10:02:50 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
- Subject: Recent History (or:learning apple script)
-
- Roy Rapoport wrote:
-
- >I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- >the big toad in terms of usefulness)...
-
- I don't intend to pick on Roy, but does anyone else feel that Tao is
- getting the short end lately? I'll agree that the book is limited compared
- to other current offerings, but many of us did buy it for a reason. For
- me, the purchase of a simple introduction plus AppleScript 1.0 plus some
- useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
- It's easy to forget that it was one of the first (was it THE first)
- low-cost ways to start scripting. Technically it had some problems,
- especially for the (now) advanced scripters, but it was out very early. I
- was certainly glad it was available at that time. I don't think it
- deserves such strong language.
-
- -- Dave (just my two or three cents) Brown, who has no connection with the book.
- =========================================================================
- Date: Wed, 7 Sep 1994 09:37:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: learning apple script
-
- >Could someone recommend a book about applescript, or else share what
- >resources you used to learn applescript.
- >
- >TIA!
- >
- >A newbie scripter...
- >james lane
- >university of washington
- >office of technology transfer
- >lanej@u.washington.edu
-
-
- There are three sourses of Information (none of them will set the world on
- fire) but they are more than sufficient for your purposes.
-
- First, there is Derrick Schneider "Tao of Applescript" which contrary to
- popular opinion is quite a good book and deals effictevely with subject at
- a basic level.
- Secondly there is the Danny Goodmans book (which I have only borrowed for a
- few days but based on this I have ordered a copy). It is a better all
- rounder than the first option. That is as much as I can fairly say.
- Thirdly there are the official Apple docs (enough said). They tend to
- plummit the usual depths of technical literature.
-
- The above information you will have repeated to you many times (except for
- the opinions :-) )
-
- Learning by trial and error is not impossible and is the method I used when
- I started to learn AS. You will get some guarded information from this list
- but I would say that you should depend mostly on your own devices and the
- first two refrences mentioned above. Finally, it is well worth the effort
- you will put forth as AS is certainly the most useful extension to the
- Macintosh since its inception (my opinion yet again).
-
- Good Luck and Hopefully we will hear more from you as things progress.
-
- Frank C.
- R&E
- =========================================================================
- Date: Wed, 7 Sep 1994 10:25:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Recent History (or:learning apple script)
- In-Reply-To: Your message of "Wed, 07 Sep 94 10:02:50 EDT"
-
- David Brown replied to Roy Roper's message.....
- >
- >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- >>the big toad in terms of usefulness)...
- >
- >I don't intend to pick on Roy, but does anyone else feel that Tao is
- >getting the short end lately? I'll agree that the book is limited compared
- >to other current offerings, but many of us did buy it for a reason. For
- >me, the purchase of a simple introduction plus AppleScript 1.0 plus some
- >useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
- >It's easy to forget that it was one of the first (was it THE first)
- >low-cost ways to start scripting. Technically it had some problems,
- >especially for the (now) advanced scripters, but it was out very early. I
- >was certainly glad it was available at that time. I don't think it
- >deserves such strong language.
-
- Derrick's was THE FIRST book out and it included AppleScript back before there
- was an easy way for most people to get it. And get it cheaply, I might add.
- David's right, it's been dumped on quite a bit lately. Given the fact that
- Derrick's on the list, our language (and/or condemnation?) has been a bit
- strong. Ask yourself if you would say repeatedly to someone's face that what
- they've dumped months of their life into sucked?
-
- (Okay, okay, I'll put away my netiquette badge now.)
-
- pf
- just another writer with an ego
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Wed, 7 Sep 1994 11:50:09 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
- Subject: ? on GTQ object database
-
- I need some help. I keep getting an error ("the app can't tell me what
- kind") when I try to use the create database command from the Object
- Database osax (GTQ Scripting Library). Why doesn't this work?
-
- Thanks,
-
- Kevin
- =========================================================================
- Date: Wed, 7 Sep 1994 09:03:44 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "David A. Rogers" <davidr@HALCYON.COM>
- Subject: Re: learning apple script
-
- >>it might pay to await the upcoming second edition (AppleScript Handbook)
- >
- >It may not pay. That edition won't be out until we all are using new
- >calendars.
- >
- >Danny
-
-
- Danny,
-
- If I agree to start using a different calendar, can I have a pre-release
- copy now? <grin>
-
-
- ---
- David A. Rogers
- david.rogers@aldus.com
- davidr@halcyon.com
- =========================================================================
- Date: Wed, 7 Sep 1994 11:07:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: Recent History (or:learning apple script)
-
- >Roy Rapoport wrote:
- >
- >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- >>the big toad in terms of usefulness)...
- >
- >I don't intend to pick on Roy, but does anyone else feel that Tao is
- >getting the short end lately? I'll agree that the book is limited compared
- >to other current offerings, but many of us did buy it for a reason. For
- >me, the purchase of a simple introduction plus AppleScript 1.0 plus some
- >useful scriptable tools (e.g., Progress Bar) was well worth the low cost.
- >It's easy to forget that it was one of the first (was it THE first)
- >low-cost ways to start scripting. Technically it had some problems,
- >especially for the (now) advanced scripters, but it was out very early. I
- >was certainly glad it was available at that time. I don't think it
- >deserves such strong language.
- >
- >-- Dave (just my two or three cents) Brown, who has no connection with the
- >book.
-
-
- Yep. I think that the book certainly was worth every cent I spent on it. I
- a field (still) devoid of any decent literature it was extremely usefull
- and I would think still usefull to anyone starting to AS. The problem is
- not the book but a certain lack of self control on the part of would be
- critics.
-
- Frank C.
- R&E
- =========================================================================
- Date: Wed, 7 Sep 1994 09:22:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: A Newbie perspective on learning AS
-
- Well I have never programed before (except for .bat files when I used DOS
- which doesn't count). And for me Applescript was a compromise, as I knew I
- didn't have time to learn a full blown language - and applescript appears
- to be able to do most of what I want.
- I'm about half way through Danny's 'applescript handbook' and am finding it
- pretty usable as a non programer. Some of the more difficult stuff I have
- to reread but I expect to be a little confused, as I learn better if I
- really have to figure things out on my own. What I would really like is
- consolidated application based FAQs (ie scripting Eudora or scripting
- Anarchie) as trial and error is frustrating. I don't think applescript (or
- anything very powerful) will ever be appropriate for anyone who is easily
- intimidated by more gut level computer operations (despite AS's Englishisms
- it is still essentially a type of programing). I think an infinite amount
- of handholding won't do much good. AS is better than anything else I've
- seen but you still have to really WANT to learn it and be prepared to spend
- some time (and hair) with it. But I'm having lots of fun.
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Wed, 7 Sep 1994 09:49:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: learning apple script
- In-Reply-To: <199409070711.AAA21439@netcom15.netcom.com>
-
- On Tue, 6 Sep 1994, John W. Baxter wrote:
-
- > With respect to "Tao", it is important to be sure you are picking up the
- > Second Edition, not the first, if you decide Tao is right for you.
-
- Thanks for mentioning that, John. The second edition is a big improvement
- over the first, IMHO, and I would highly encourage getting it
-
- Thanks also to the rest of you for your support in this thread. I don't
- mind criticism of the book at all, especially since it helps if(when) I
- do another edition. Comments about the first definitely got listened to
- when the second was being done (even little things like including the
- scripts on the disk), and the same will be true if there is ever a third.
-
- However, I don't mind good things being said, either! :)
-
- Derrick
- =========================================================================
- Date: Wed, 7 Sep 1994 09:55:39 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: learning apple script
- In-Reply-To: <199409070503.WAA05190@netcom15.netcom.com>
-
- On Tue, 6 Sep 1994, Roy S. Rapoport wrote:
-
- > the TofA, for me, sucked. It taught me how to do 2+2 in AS and introduced
- > the basic concepts of AS, but AS A REFERENCE MANUAL IT SUCKED.
- >
- > Now, obviously it's supposed to suck, as Derrick says above -- it's not
- > supposed to be a reference manual. As something to introduce people who get
- > a stroke when thinking of opening a control panel to AppleScript, it's
- > superb. Good job. It's just that I've mucked with my mac long enough, and
- > am confident (well, arrogant) enough to think I know what I'm doing, so the
- > TofA sucked for my purposes.
-
- > Any better, Derrick? :)
- >
- > (seriously, it's a good introduction, I guess)
-
- I agree with Roy. It's not a reference manual. Truth be told, I use
- Danny's book plus the AS Language Guide for my references. I'm probably
- not supposed to say things like that, but hopefully Hayden isn't
- monitoring this mailing list!
-
- My usual advice to people who want to learn AS is to buy all three! That
- way, there's no need for a competition.
-
- Derrick
- =========================================================================
- Date: Wed, 7 Sep 1994 10:31:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Kalkwarf <kalkwarf@NETCOM.COM>
- Subject: Re: Recent History (or:learning apple script)
-
- >>I used, initially, the Tao of AppleScript (which, in technical terms, sucked
- >>the big toad in terms of usefulness)...
-
- >I don't intend to pick on Roy, but does anyone else feel that Tao is
- >getting the short end lately?
-
- I was very unhappy with my purchase. The biggest problem was that lots of
- the sample scripts were just plain wrong. Some didn't syntax check, some
- didn't run properly when compiled. My margins are filled with notes
- correcting scripts, up until around chapter 8, when I gave up. If this is
- intended to be an introduction to scripting for the code illiterate, I
- think the errors would turn people off forever. Can you imagine your mother
- typing in a script from the book, and getting errors? And then continuing
- with the process? Not my mom...
-
- Steve
- =========================================================================
- Date: Wed, 7 Sep 1994 11:07:22 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "W. J. Proffer" <proffer@SCUBED.SCUBED.COM>
- Subject: Re: scriptable graphics conversion
-
- >
- >Here's the command from memory (so it might be wrong):
- >
- > save as "PICT" in <file> using parameters {|Compression|:"Apple Photo-JPEG",
- > |Quality|:"75"}
- >
- >Jon
-
- This may just work. I don't much like GIF either (because I don't much
- care for Compuserve), but unfortunately that and xbm are the only (current)
- native formats for Web browser windows.....
-
- thanks,
-
- bill
-
- <pre>
- William J. Proffer
- Senior Staff Scientist
- Test Technology Group
- S-Cubed, A Division of Maxwell Labs
- 3398 Carmel Mountain Road
- San Diego, CA 92038-1095
- (619) 453-0060
- (619) 755-0474 (fax)
- proffer@scubed.com
- World Wide Web URL: http://www.scubed.com:8001/
- </pre>
- =========================================================================
- Date: Wed, 7 Sep 1994 11:31:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Glenn L. Austin" <glenn_a@EFN.ORG>
- Subject: Re: mail missing...
-
- >> Since Sat, 3rd sept I do not get the mail from the mailing group!
- >> what is happening?
- >> X
- >
- >I checked with David Avery (the listserv god at Dartmouth). He tells me that
- >the MacScripting list was set to hold due to a disk-related error. He says
- >that it's set to free now, so we should begin seeing messages.
-
- Fred,
-
- Can you remove my glenn@gla-aux.uucp entry in the list (otherwise known as
- gla-aux!glenn@skinner.cs.uoregon.edu)? I'm not able to use that feed
- anymore, and wasn't able to get off the listserver with that address before
- it disappeared. I'm currently getting the mail items forwarded to
- glenn_a@efn.org, so if you can make sure that that entry IS in the
- listserver? Thanks!
-
- //
- // Glenn L. Austin
- // Computer Wizard and Racing Car Driver
- // Internet: glenn_a@efn.org
- //
- =========================================================================
- Date: Wed, 7 Sep 1994 12:04:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: learning apple script
-
- >>it might pay to await the upcoming second edition (AppleScript Handbook)
- >
- >It may not pay. That edition won't be out until we all are using new
- >calendars.
-
- True (that's why the "might")...it all depends upon what one needs/wants.
- If one wants to start out now with "Handbook", one will wind up buying both
- editions...that's fine.
-
- If one is in a position in which starting with Tao makes sense, then one
- probably buys Tao 2nd now, the Addison-Wesley Script Language Guide soon
- for reference, and Handbook 2nd when available.
-
- Handbook first edition is very usable (provided you can get the update disk
- from the publisher to cover the AppleScript 1.1 changes). [What I grab
- first for reference is the Addison-Wesley book, because it is up to date.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 7 Sep 1994 12:04:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Recent History (or:learning apple script)
-
- At 10:02 9/7/94 -0400, David Brown wrote:
- >... but does anyone else feel that Tao is
- >getting the short end lately? I'll agree that the book is limited compared
- >to other current offerings, but many of us did buy it for a reason.
-
- I agree completely. Tao was highly useful when published, and was more
- correct technically than the three-hole-punched version of what became the
- AppleScript Language Guide, as that was found in the version 1.0
- AppleScript Developer Toolkit from APDA.
-
- AppleScript was not only very late, it also appears to have been a moving
- target right up until after the release of 1.0 (and Tao, and Handbook)
- (witness 1.1 appearing right after 1.0 was frozen into System 7 Pro).
-
- Derrick did very well in what he tried to do (an early book for non-gurus)
- given the moving target. A quick bookstore scan of 2nd Edition of Tao
- suggests great improvements were made, now that AppleScript has matured.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 7 Sep 1994 12:19:01 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steven Chang <stchang@RPAL.ROCKWELL.COM>
- Subject: Using Apple Script in a C program
-
- What is the best way to use Apple Script in a C project? Is there a FAQ on
- this or a book that covers this.
-
-
- Steven K. Chang
- stchang@leland.stanford.edu
- =========================================================================
- Date: Wed, 7 Sep 1994 15:46:59 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: anthony brown <ANBROWN@HUSC.BITNET>
- Subject: minimum hardware requirements for as 1.1?
-
- Can anyone tell me what the minimum hardware requirements for running
- applescript 1.1 are? Can I run it on anymac, or is it like quicktim that
- I need at least a mac II to run it?
-
- Anthony
-
- -- The Dolphins will win the Super Bowl this season!
-
- -- Anthony Brown, Macintosh Development Intern
- -- Harvard University
- =========================================================================
- Date: Wed, 7 Sep 1994 14:56:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: Help with a script
-
- I'm tired of all of this nit-picking about the books, enough already. Do
- people just want to write in just to verify their existance?
- Can somebody help me with a script? I am trying to write an applescript
- that will........at a certain time on a certain date open a SimpleText
- file, read it with the speech mgr. and then quit SimpleText.
-
- Yours drooley.........KingShit
- =========================================================================
- Date: Wed, 7 Sep 1994 14:59:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: Help with a script
-
- I'm tired of all of this nit-picking about the books, enough already. Do
- people just want to write in just to verify their existance?
- Can somebody help me with a script? I am trying to write an applescript
- that will........at a certain time on a certain date open a SimpleText
- file, read it with the speech mgr. and then quit SimpleText.
- ....................KingShit
-
- Yours drooley.........KingShit
- =========================================================================
- Date: Wed, 7 Sep 1994 15:18:27 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Launching Excel from Fronti
-
- Subject: Time:1:27 PM
- OFFICE MEMO Launching Excel from Frontier Date:9/7/94
- I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
- I've tried the verb, app.startWithDocument, both in a script and in the
- QuickScript window. The latter method seems fairly reliable, i.e. Excel
- launches with the document I want. Using the verb in a script in the form:
- ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
- ...does *not* work. Excel starts up but hangs before it gets to drawing its
- toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
- control to me. Removing the 'ok' variable yields a small measure of success;
- Excel may comeup once or twice before it locks up the whole system. In both
- cases, the statements are being executed within a try statement.
- My copy of Excel seems healthy in all other ways; I use it everyday without
- incident. Likewise Frontier. I haven't tried too many alternatives, largely
- because app.startWithDocument so precisely fits my needs. But I am totally open
- to other methods provided they accomplish the same goal.
-
- Any ideas from the Frontier-gurus?
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- =========================================================================
- Date: Wed, 7 Sep 1994 16:13:34 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: minimum hardware requirements for as 1.1?
- In-Reply-To: <no.id> from "anthony brown" at Sep 7, 94 03:46:59 pm
-
- --anthony brown wrote:
- >
- >Can anyone tell me what the minimum hardware requirements for running
- >applescript 1.1 are? Can I run it on anymac, or is it like quicktim that
- >I need at least a mac II to run it?
-
- I'm pretty sure that AppleScript can be installed and run on any Mac
- that is running System 7, or better.
-
- -Hades
- =========================================================================
- Date: Wed, 7 Sep 1994 15:27:00 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Cutting & pasting w Apple E
-
- Subject: Time:3:14 PM
- OFFICE MEMO Cutting & pasting w Apple Events Date:9/7/94
- I have an Excel spreadsheet which I use to record information for later
- indexing. I've developed a nice little formatting template (not to be confused
- with a document template) which I apply to consecutive ranges of cells to make
- the data more eyeball-friendly.
- I've played around with automating the process of applying this formatting via
- Apple Events. Using Frontier and the Object Model I can do various some pretty
- cool things. What I can't figure out is how to emulate, directly or indirectly,
- the effect of copying the formatting of my template and pasting it into the
- next group of cells.
- Has anybody had much experience automating Excel in a similiar way?
-
- Mark Stewart
- BIAD-Research Imaging Center
- =========================================================================
- Date: Wed, 7 Sep 1994 15:30:50 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: ** File Tracker upgrade info **
- In-Reply-To: Your message of "Wed, 07 Sep 94 15:18:31 EDT"
-
- Everyone,
-
- You'll find a couple of new items on gaea. Mark Aiken has released FileTracker
- 1.5, and Full Moon software has passed along an updater for ScriptWizard. The
- URLs are
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/FileTracker15.sit.hqx
- ftp://gaea.kgs.ukans.edu/applescript/demos/ScriptWiz1.0->1.0.1x41.sea.hqx
-
- Cheers.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Wed, 7 Sep 1994 13:05:59 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Delevoryas <pdel@NETCOM.COM>
- Subject: Re: Recent History (or:learning apple script)
- In-Reply-To: Your message of "Wed,
- 07 Sep 94 10:25:56 CDT." <199409071617.JAA24241@ads.com>
-
- > Ask yourself if you would say repeatedly to someone's face that what
- they've dumped months of their life into sucked?
-
- Exactly.
-
- Maybe the critics could try writing a book for us to review?
-
- I've used the Tao book.
- I'm now using applescript and looking forward to learning more.
- =========================================================================
- Date: Wed, 7 Sep 1994 15:51:25 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
- Subject: None
-
- REGARDING None
- >Mark Stewart:
- >What I can't figure out is how to emulate, directly or indirectly,
- >the effect of copying the formatting of my template and pasting it into >the
- next group of cells.
- >Has anybody had much experience automating Excel in a similiar way?
-
- You might consider contacting ISIS International about their "S7PX". It is
- a collection of Excel add-in's that allow you to communicate readily with
- Frontier and to execute generic AppleEvents when a worksheet is recalculated.
- You can actually include the AE command in a cell formula!
- Tres cool.
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 7 Sep 1994 16:38:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Frontier/PageMaker glue
-
- Howdy again,
-
- John Baxter has passed along a glue file for PageMaker 5.0. You'll find it in
-
- ftp://gaea.kgs.ukans.edu/frontier/gluefiles/PM_Frontier_Glue_pkg.sit.hqx
-
- John says this about the package:
-
- > This is a package which provides "glue" for scripting PageMaker 5.0 in
- >Frontier. [PageMaker does Do Script...the glue makes that make sense.]
- >Many hands contributed to the package, which was brought together by Pete
- >Dako. Other key players were Stephen Toutonghi, Chris Mahnken, and Tom
- >Petaccia.
- >
- > This is "postcardware".
- >
- > The primary documentation would be the Aldus Script Langauge Guide for
- >PageMaker.
- >
- > Can also be used with Frontier Runtime...those who prefer to write in
- >AppleScript will find some example scripts in that language (which Pete
- >learned long after he learned his first programming language:
- >UserTalk)...I believe that Frontier Runtime would need to be running, but I
- >don't know that (I don't have PageMaker).
-
- Enjoy.
-
- pf
- =========================================================================
- Date: Wed, 7 Sep 1994 14:40:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Using Apple Script in a C program
-
- >What is the best way to use Apple Script in a C project? Is there a FAQ on
- >this or a book that covers this.
-
- Inside Macintosh: Interapplication Communication has all you need to know.
- Another useful form of the information is in a two-article series by Paul
- Smith in "develop" magazine, issues 18 and 19. (Several earlier "develop"
- issues also had coverage.)
-
- If you don't want to get fancy, it's really pretty simple to "say to
- AppleScript": here, compile this text and run it and tell me what happens.
- And it's only a little harder if you do want to get fancy.
-
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 7 Sep 1994 15:07:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Help with a script
-
- > Can somebody help me with a script? I am trying to write an applescript
- > that will........at a certain time on a certain date open a
- > SimpleText file, read it with the speech mgr. and then quit SimpleText.
-
-
- Suggestion: Split it into two parts:
- A) Scheduler
- B) Speech part.
-
- The scheduler part is easy -- use Chronographer (shareware). The rest
- someone who actually uses the Speech manager will hve to help with ...
-
- -roy
- =========================================================================
- Date: Wed, 7 Sep 1994 15:11:28 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Launching Excel from Frontier
-
- >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
- >I've tried the verb, app.startWithDocument, both in a script and in the
- >QuickScript window. The latter method seems fairly reliable, i.e. Excel
- >launches with the document I want. Using the verb in a script in the form:
- >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
- >...does *not* work. Excel starts up but hangs before it gets to drawing its
- >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
- >control to me. Removing the 'ok' variable yields a small measure of success;
- >Excel may comeup once or twice before it locks up the whole system. In both
- >cases, the statements are being executed within a try statement.
- >My copy of Excel seems healthy in all other ways; I use it everyday without
- >incident. Likewise Frontier. I haven't tried too many alternatives, largely
- >because app.startWithDocument so precisely fits my needs. But I am totally open
- >to other methods provided they accomplish the same goal.
- >
- >Any ideas from the Frontier-gurus?
- >
- I think your problem is that you're passing the address of the cell
- containing the file path instead of the file path itself. I just executed
- the following from a script with no problem:
-
- app.startWithDocument ("JPEGView", scratchpad.JPEGFile)
-
- Just for drill, I guess I'd also make sure that the contents of
- docAddressInObjectDbase is of type file-spec, coercing it if necessary.
-
- David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Wed, 7 Sep 1994 17:23:35 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Re: Launching Excel from Fro
-
- Reply to: RE>Launching Excel from Fronti
- >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier
- 3.0.3.
- >I've tried the verb, app.startWithDocument, both in a script and in the
- >QuickScript window. The latter method seems fairly reliable, i.e. Excel
- >launches with the document I want. Using the verb in a script in the form:
- >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
- >...does *not* work. Excel starts up but hangs before it gets to drawing its
- >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and
- return
- >control to me. Removing the 'ok' variable yields a small measure of success;
- >Excel may comeup once or twice before it locks up the whole system. In both
- >cases, the statements are being executed within a try statement.
- >My copy of Excel seems healthy in all other ways; I use it everyday without
- >incident. Likewise Frontier. I haven't tried too many alternatives, largely
- >because app.startWithDocument so precisely fits my needs. But I am totally
- open
- >to other methods provided they accomplish the same goal.
- >
- >Any ideas from the Frontier-gurus?
- >
- >Mark Stewart
- >BIAD-Research Imaging Center
- >UTHSCSA
-
-
-
- Is Excel also displaying an unneeded open dialog box? Don't forget to
- set setEventInteraction() to false, otherwise Excel will wait tirelessly for
- you to select a file to open in it's dialog box.
- I've not had the problem you're having....
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 7 Sep 1994 17:31:53 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Re: Help with a script
-
- Reply to: RE>>Help with a script
- >> Can somebody help me with a script? I am trying to write an applescript
- >> that will........at a certain time on a certain date open a
- >> SimpleText file, read it with the speech mgr. and then quit SimpleText.
- >
- >
- >Suggestion: Split it into two parts:
- >A) Scheduler
- >B) Speech part.
- >
- >The scheduler part is easy -- use Chronographer (shareware). The rest
- >someone who actually uses the Speech manager will hve to help with ...
- >
- >-roy
-
-
- I think part B should be easy as well. Just record it (make sure the
- Speech Manager is installed!). A little editing and you're done...
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 7 Sep 1994 17:54:04 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
- Subject: Open With
-
- REGARDING Open With
- I'm trying to produce a drag-n-drop applet that opens a text file with a
- specific application, regardless of the creator type it's graced with.
- It would be great if AppleScript had Frontier's launch.appWithDocument().
- The following script is my effort to do this:
-
-
- on open selectedFile
- tell application "Finder"
- display dialog selectedFile as string --Just so I can see!
- tell application "Finder Liaison 1.0"
- copy (Get Creator of File selectedFile) to originalCreator
- end tell
- Set Creator of file selectedFile To "quil"
- open selectedFile
- Set Creator of file selectedFile To originalCreator
- end tell
- end open
-
-
- When I drag and drop, I get this:
- "Cannot get file <blah, blah, blah> of application
- Finder Liason 1.0. Access not allowed."
-
- What am I doing wrong? I've seen this error dialog before. The offending
- statement is "Get Creator of File selectedFile".
-
- Thanks in advance for any councel and advice.
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Thu, 8 Sep 1994 11:10:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: scriptable graphics conversion
-
- Jon Pugh <jonpugh@NETCOM.COM> writes:
-
- ><uninvited impersonal GIF flames>
- >
- >Please, do me a favor. Never create another GIF file in your life. Use
- >JPEG instead. You get a 24 bit file in the same space (or better
- >compression if you are willing to sacrifice image details).
- ...
- >Down with GIF!
-
- Hear, hear!
-
- However, I should point out some real-world unpleasantness. I've been
- occasionally helping a colleague get scanned images into our WWW server,
- by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
- them in JPEG format, and then FTPing them onto the UNIX host. So far he's
- had no success with these, whereas if I try converting to GIF and FTPing him
- that instead, it works fine. This would seem to rule out any problem at the FTP
- step (I'm using Anarchie).
-
- Conclusion: some of the JPEG code that's around on the more deprived platforms
- may not be the best...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 7 Sep 1994 19:06:41 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Re: Help with a script
-
- Reply to: RE>>Help with a script
- >>Suggestion: Split it into two parts:
- >>A) Scheduler
- >>B) Speech part.
- >>
- >>The scheduler part is easy -- use Chronographer (shareware). The rest
- >>someone who actually uses the Speech manager will hve to help with ...
- >>
- >>-roy
- >
- >
- > I think part B should be easy as well. Just record it (make sure the
- >Speech Manager is installed!). A little editing and you're done...
-
- Oops! SimpleText isn't scriptable and the Scriptable Text Editor (what I
- actually had in mind) -- included in the AppleScript developer's kit --
- doesn't read text aloud.
-
- Apologies--
- Richard Petty
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Thu, 8 Sep 1994 12:13:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Open With
-
- Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM> writes:
-
- >I'm trying to produce a drag-n-drop applet that opens a text file with a
- >specific application, regardless of the creator type it's graced with.
-
- tell application "specific application" to open file "text file"
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 7 Sep 1994 19:37:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: Re: my own question
-
- RE: To: MACSCRPT%DARTCMS1.BITNET@uga.cc.uga.edu
- From: yosus@mcs.com (For every action there is an equal and opposite reaction.)
- Subject: Help with a script
-
-
- Can somebody help me with a script? I am trying to write an applescript
- that will........at a certain time on a certain date open a SimpleText
- file, read it with the speech mgr. and then quit SimpleText.
-
- tell application "SimpleText copy"
- open file "name of text file"
- activate
- Select Menu Item menu id 134 menu item id 5
- quit application "SimpleText copy"
- end tell
-
- This almost works for the second half of the script, except it starts to
- speak the text with the speech mgr., but then the quit application command
- kicks in before the speech can be completed. P.S. this is also using the
- "menu events" scripting addition & extension.
- I really like the SimpleText program, the speech and record functions
- make it a small, yet powerful, fun text editor.
-
- KingShit
- =========================================================================
- Date: Wed, 7 Sep 1994 17:54:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Recent History (or:learning apple script)
- In-Reply-To: <199409071910.MAA25153@netcom2.netcom.com>
-
- On Wed, 7 Sep 1994, Steve Kalkwarf wrote:
-
- > I was very unhappy with my purchase. The biggest problem was that lots of
- > the sample scripts were just plain wrong. Some didn't syntax check, some
- > didn't run properly when compiled. My margins are filled with notes
- > correcting scripts, up until around chapter 8, when I gave up.
-
- Hmmm. I do know that some of the later scripts had problems, but the
- earlier ones should have been fine. Don't suppose you'd mind xeroxing
- some of those and sending them to me?
-
- BTW, attentive to those complaints, I tried very hard to check the
- scripts in Tao 2. I know it doesn't help Tao 1 owners with the same
- problem, but it's something.
-
- Derrick
- =========================================================================
- Date: Wed, 7 Sep 1994 17:56:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Recent History (or:learning apple script)
- In-Reply-To: <199409072047.NAA04754@netcom11.netcom.com>
-
- On Wed, 7 Sep 1994, John W. Baxter wrote:
-
- > AppleScript was not only very late, it also appears to have been a moving
- > target right up until after the release of 1.0 (and Tao, and Handbook)
- > (witness 1.1 appearing right after 1.0 was frozen into System 7 Pro).
-
- Tell me about it! I wasn't thrilled with having 1.1 come out four months
- after the Tao book. Hopefully I'll have a bit of a break for the next
- version!
-
- Derrick
- "Last time I ever write about an unreleased product!"
- =========================================================================
- Date: Wed, 7 Sep 1994 19:18:07 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Send me AliasExpander
-
- Send me AliasExpander,
-
- Thanks,
-
- Mike Lennon.
- =========================================================================
- Date: Wed, 7 Sep 1994 18:56:11 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Open With
-
- >REGARDING Open With
- >I'm trying to produce a drag-n-drop applet that opens a text file with a
- >specific application, regardless of the creator type it's graced with.
- > It would be great if AppleScript had Frontier's launch.appWithDocument().
- >The following script is my effort to do this:
-
- I recommend that you forget about the old Finder and the various aids which
- worked around its scripting limitations (caused by its being frozen
- somewhat before System 7.0 shipped in May of 1991, well before the rest of
- Apple events and AppleScript), and go with the Scriptable Finder.
-
- There, you can use open in this very sensible way (copied from the Dictionary)
-
- open: Open the specified object(s)
- open reference -- list of objects to open
- [using reference] -- the application file to open the object with
-
-
- Just name the desired application in the using clause.
-
- Scriptable Finder comes with System 7.5...it's also available for $25 from
- APDA. Cheaper than working around the sorts of things you're trying to do.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 7 Sep 1994 18:56:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Cutting & pasting w Apple E
-
- > Subject: Time:3:14 PM
- > OFFICE MEMO Cutting & pasting w Apple Events Date:9/7/94
- >I have an Excel spreadsheet which I use to record information for later
- >indexing. I've developed a nice little formatting template (not to be confused
- >with a document template) which I apply to consecutive ranges of cells to make
- >the data more eyeball-friendly.
- >I've played around with automating the process of applying this formatting via
- >Apple Events. Using Frontier and the Object Model I can do various some pretty
- >cool things. What I can't figure out is how to emulate, directly or indirectly,
- >the effect of copying the formatting of my template and pasting it into the
- >next group of cells.
- >Has anybody had much experience automating Excel in a similiar way?
-
- I haven't had much luck (in either UserTalk or AppleScript) trying to apply
- formats to Excel cells or cell ranges. I think that's because I'm not
- smart enough to figure out how to do it (I *think* the capability is
- somewhere there in Excel). Sorry.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Wed, 7 Sep 1994 18:56:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Launching Excel from Fronti
-
- > Subject: Time:1:27 PM
- > OFFICE MEMO Launching Excel from Frontier Date:9/7/94
- >I'm trying to launch Excel 4 with a specific spreadsheet from Frontier 3.0.3.
- >I've tried the verb, app.startWithDocument, both in a script and in the
- >QuickScript window. The latter method seems fairly reliable, i.e. Excel
- >launches with the document I want. Using the verb in a script in the form:
- >ok = app.startWithDocument ('Excel', @docAddressInObjectDbase)
- >...does *not* work. Excel starts up but hangs before it gets to drawing its
- >toolbar and menus. Most times a Cmd-Option-Escape manages to kill it and return
- >control to me. Removing the 'ok' variable yields a small measure of success;
- >Excel may comeup once or twice before it locks up the whole system. In both
- >cases, the statements are being executed within a try statement.
- >My copy of Excel seems healthy in all other ways; I use it everyday without
- >incident. Likewise Frontier. I haven't tried too many alternatives, largely
- >because app.startWithDocument so precisely fits my needs. But I am totally open
- >to other methods provided they accomplish the same goal.
-
- Either this:
- launch.appWithDocument ("Vashon:Excel:Microsoft Excel",
- "Vashon:Excel:Weight Excel")
-
- or this:
-
- app.startWithDocument ("Excel", "Vashon:Excel:Weight Excel")
-
- works find for me, PROVIDED Excel is not already running. If Excel is
- already running, just use
-
- with objectModel, Excel
- setEventInteraction (false)
- open ("Vashon:Excel:Weight Excel")
-
- (you may or may not want to follow that with setEventInteraction (true)
- [that setting is per script (and the scripts that script calls), with a
- default of true]).
-
- As usual, you can tell which form to use by using
- sys.appIsRunning ("MicroSoft Excel")
-
- or
- sys.appIsRunning (Excel.id)
-
- either of which is true if Excel is running.
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Wed, 7 Sep 1994 22:27:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: Fax Merging with Word/FaxSTF/Touchbase Pro
-
- >And of course Word 5.1a is not AppleScript aware as far as I can see...,
- >neither is Touchbase Pro 3.0i (although 4.0 is... but no-one in Australia
- >wants to sell it to me!).
-
- Our Player utility adds verbs to AppleScript for directly controlling the
- user interface: choose from a menu or pop-up, select a radio button, type
- text, etc. I used it to drive FAXstf from FileMaker (from a FAX
- correspondance database) until I gave up on 'stf and switched to software
- that came with my FAX box.
-
- $95 + shipping, 60-day Money Back Guarantee.
-
- A press release, data sheet & comparison to QuicKeys & Tempo should be
- posted on gaea shortly. I'd be happy to e-mail one or more of these docs
- in the meantime.
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Wed, 7 Sep 1994 20:00:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kirk Stork <kastork@NPS.NAVY.MIL>
- Subject: Re: Help with a script
-
- > Reply to: RE>>Help with a script
- >>>Suggestion: Split it into two parts:
- >>>A) Scheduler
- >>>B) Speech part.
- >>>
- >>>The scheduler part is easy -- use Chronographer (shareware). The rest
- >>>someone who actually uses the Speech manager will hve to help with ...
- >>>
- >>>-roy
- >>
- >>
- >> I think part B should be easy as well. Just record it (make sure the
- >>Speech Manager is installed!). A little editing and you're done...
- >
- > Oops! SimpleText isn't scriptable and the Scriptable Text Editor (what I
- >actually had in mind) -- included in the AppleScript developer's kit --
- >doesn't read text aloud.
- >
- How about Saint Edit? Been a while since I used it, but it does read text. Don
- 't know if its scriptable and recordable though.
- =========================================================================
- Date: Wed, 7 Sep 1994 20:00:31 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kirk Stork <kastork@NPS.NAVY.MIL>
- Subject: Re: scriptable graphics conversion
-
- >Jon Pugh <jonpugh@NETCOM.COM> writes:
- >
- >><uninvited impersonal GIF flames>
- >>
- >>Please, do me a favor. Never create another GIF file in your life. Use
- >>JPEG instead. You get a 24 bit file in the same space (or better
- >>compression if you are willing to sacrifice image details).
- >...
- >>Down with GIF!
- >
- >Hear, hear!
- >
- >However, I should point out some real-world unpleasantness. I've been
- >occasionally helping a colleague get scanned images into our WWW server,
- >by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
- >them in JPEG format, and then FTPing them onto the UNIX host. So far he's
- >had no success with these, whereas if I try converting to GIF and FTPing him
- >that instead, it works fine. This would seem to rule out any problem at the FTP
- >step (I'm using Anarchie).
- >
- >Conclusion: some of the JPEG code that's around on the more deprived platforms
- >may not be the best...
- >
-
- Only one thing. Does your JPEG conversion use Quicktime? If so, try turning of
- f Quicktime compression when you convert. This may solve the UNIX box's problem
- with the JPEG. Other than that I don't know, the favored format at my place se
- ems to be .rgb - Huge files.
-
- --just another guy in favor of eliminating GIF forever--
- =========================================================================
- Date: Thu, 8 Sep 1994 00:01:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
- Subject: Re: scriptable graphics conversion
- In-Reply-To: <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" at Sep 8, 94 11:10:00 am
-
- > Hear, hear!
- >
- > However, I should point out some real-world unpleasantness. I've been
- > occasionally helping a colleague get scanned images into our WWW server,
- > by taking TIFF files off a DOS-format disk into Adobe Photoshop, exporting
- > them in JPEG format, and then FTPing them onto the UNIX host. So far he's
- > had no success with these, whereas if I try converting to GIF and FTPing him
- > that instead, it works fine. This would seem to rule out any problem at the FT
- P
- > step (I'm using Anarchie).
- >
- > Conclusion: some of the JPEG code that's around on the more deprived platforms
- > may not be the best...
- >
-
- Actually your JPEG code is probably fine. While http servers may support
- inline JPEG images, I do not know of any *client* that does. A professor
- here was having the same problem, and things cleared up when he went to
- GIFs. I believe the only supported formats are GIF and Xbim (or whatever
- that X bitmap format is called :) ).
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- 10819 Auldine | selfstro@cs.trinity.edu
- San Antonio, TX 78230 | http://www.cs.trinity.edu/~selfstro/
- (210) 341-4624 | PGP Key available via finger
- =========================================================================
- Date: Wed, 7 Sep 1994 23:34:35 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: my own question
-
- >tell application "SimpleText copy"
- > open file "name of text file"
- > activate
- > Select Menu Item menu id 134 menu item id 5
- > quit application "SimpleText copy"
- >end tell
- >
- >This almost works for the second half of the script, except it starts to
- >speak the text with the speech mgr., but then the quit application command
- >kicks in before the speech can be completed.
-
- You could delay the "quit" command a number of ways....but the best way to
- do it would be to use the "idle..end idle" handler. Other ways of delaying
- will eat up processor power during the delay.
-
- global i
- set i to 1
- on idle
- if i = 1 then
- tell application "SimpleText copy"
- open file "name of text file"
- activate
- Select Menu Item menu id 134 menu item id 5
- end tell
- else if i = 2 then
- tell application "SimpleText copy" to quit
- quit
- end if
- set i to i + 1
- return 600 -- this is the delay in seconds before it sends the
- quit command
- end idle
-
-
- Note that this script won't run unless you save it as an "stay open"
- application, and run it from the Finder.
-
- -Dave
-
- -----------------------------------------------------------------------
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Thu, 8 Sep 1994 10:19:50 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: AS 1.1 - bug or feature?
-
- Hi folks,
-
- I don't know if this has been discussed before; apologies if that's so.
-
- We've noticed that, if AppleScript 1.1 is installed, but the scripting
- additions folder is missing (or incorrectly named), it transparently
- creates a new, empty, scripting additions folder (in turn containing a
- new, empty, dialects folder).
-
- Thereafter, AS 1.1 will be unable to extract source code from scripts,
- and will not allow dictionaries to be opened.
-
- This could be useful in that a very simple script (one that uses no
- scripting additions) should run as long as at least the AS 1.1
- extension is loaded, whether or not scripting additions and dialects
- are present. It might be a bug, though. Something to watch out for
- when troubleshooting.
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Thu, 8 Sep 1994 20:33:37 +1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Parry <dparry@OZEMAIL.COM.AU>
- Subject: Re: my own question
-
- >that will........at a certain time on a certain date open a SimpleText
-
- I'm really keen to see how you get the date & time launching happening.
-
- Is the only way to have an applet in the startup items folder constantly
- checking the time & date or what?
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > dparry@ozemail.com.au Voice: + 61 7 356 7645 <
- > The System Fax: + 61 7 356 7790 <
- > 46 Lansdowne Street DJP Mobile: 015 150 939 <
- > Wilston QLD 4051 MJE Mobile: 018 732 521 <
- > Australia <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > You could get run over by a bus tomorrow... go on... have a fag! <
- > <
- > \@\ <
- > /@@/ <
- > \@@@\ <
- > \@@@/ <
- > \@\ <
- > |#|00000000000))) <
- > <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- =========================================================================
- Date: Thu, 8 Sep 1994 05:35:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Perry Smith <pedz@BGA.COM>
- Subject: Re: READ CAREFULLY: Newsgroup Poll
-
- I just joined this group and so I think I have a little insight that
- others might not. It took me a while, like a month or so, to discover this
- mailig list and then it was in an offhand reply. So I feel I "lucked"
- out by finding this group. I'm 100% positive that there are probably
- two or three other mailing lists for the same purpose (thats my gut feel).
-
- I think mailing lists fail in a number of dimensions. If you have 16
- messages per day, then I think that statistic alone justifies a newsgroup.
- I have often been stuck inside a large corporation that did not have
- news but I could get mail back and forth. So I would keep a mailing list
- that echoed messages back and forth.
-
- I would also post at least once a month that this mailing list exists
- in news until a news group is created.
-
- pedz
- =========================================================================
- Date: Thu, 8 Sep 1994 08:04:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: My first BBEdit/AppleScript!
-
- =46riends
-
- I am re-sending this message from last week. My questions are still relevant=
- :
-
- --------(included message)----------
-
- I've been complaining for a few days about scripts for BBEdit. Well, now
- I've done something about it: here's my first successful AppleScript. It
- examines a text file line-by-line, then copies each line to a second
- window. Bear with me -- as simple as it is, it's taken me three days to get
- it to work.
-
- My goodness is it slow! Is there any way to speed it up, perhaps by
- bypassing the Clipboard? Thanks for any pointers.
-
- tell application "BBEdit 3.0"
- activate
- open alias "Mustela furo:Polya:Test 002.bbe"
- open alias "Mustela furo:Polya:Test 001.bbe"
- set lineCount to Number of Lines in window 1
- --the only classes are Window and Application, no
- --support for Word, Text item, or Character
- set newLine to ""
- repeat with i from 1 to lineCount
- Go To Line i
- --I originally had "Go to line i of Window 1"
- --a definite "no-no"; thanks to Rich Siegel of
- --BBEdit for this pointer.
- Select Current Line
- --the only things you can select are Current Line,
- --Paragraph, and Everything. Any other selection must
- --be through the Find command.
- Copy
- set newLine to clipboard
- --is there a better way to do this, rather than
- --go through the clipboard?
- Exchange Windows
- if newLine =82 "" then
- Insert Text (newLine as text)
- else
- Insert Text return
- end if
- Exchange Windows
- end repeat
- end tell
-
- Clint
- =========================================================================
- Date: Thu, 8 Sep 1994 06:36:25 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andrew T. Johnston" <atjohnst@APPLE.COM>
- Subject: RE>>Cutting & pasting w Apple Events
-
- Hi,
-
- >>What I can't figure out is how to emulate, directly or indirectly,
- >>the effect of copying the formatting of my template and pasting it into the
- >>next group of cells.
- >>Has anybody had much experience automating Excel in a similiar way?
-
- >I haven't had much luck (in either UserTalk or AppleScript) trying to apply
- >formats to Excel cells or cell ranges.
-
- I have no experience with Frontier, but I do have a script that runs daily
- to produce a decent-looking report in Excel. The script itself is huge, but
- I've included some bits that might be relevant below.
-
- My understanding is that there is some process for using an app's user
- terminology resource to make the right commands, etc. available to Frontier.
- Hopefully you'll be able to do that in this case.
-
- These script bits require Excel 4.0 to be useful.
-
- tell application "Excel 4.0"
- --
- -- range references are strings in the form of "Ry1Cx1:Ry2Cx2"
- -- where x1,x2 are column numbers, and y1,y2 are row numbers
- --
- set rangeString to ("R" & rowOffset & "C1:R" & (rowCount + rowOffset) & "C6")
- set bottom border of Range rangeString to hairline
- set bold of Range rangeString to true
- set alignment of Range rangeString to center
- set the number format of Range rangeString to "0.00" -- number format string
- end tell
-
-
- Hopefully helpful,
- Andrew
-
- ------------------
- Andrew T. Johnston
- Apple Canada, Inc.
- atjohnst@apple.com
- =========================================================================
- Date: Thu, 8 Sep 1994 09:19:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Fax Merging with Word/FaxSTF/Touchbase Pro
- In-Reply-To: Your message of "Wed, 07 Sep 94 22:27:00 CDT"
-
- Scott Lawton says....
-
- >A press release, data sheet & comparison to QuicKeys & Tempo should be
- >posted on gaea shortly. I'd be happy to e-mail one or more of these docs
- >in the meantime.
-
- They are up. Check out
-
- ftp://gaea.kgs.ukans.edu/applescript/PRs/PlayerInfo.sit.hqx
-
- Cheers.
-
- pf
- =========================================================================
- Date: Thu, 8 Sep 1994 09:21:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: POLLS CLOSE TOMORROW
-
- Everyone,
-
- Just a gentle reminder that the newsgroup creation polls close tomorrow. So
- get those ballots in. I only have 160 ballots and there are now 812
- subscribers; our percentages haven't improved much.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Thu, 8 Sep 1994 09:54:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Sean Elfstrom (457235635)" <selfstro@CS.TRINITY.EDU>
- Subject: Re: My first BBEdit/AppleScript!
- In-Reply-To: <no.id> from "Clinton MacDonald" at Sep 8, 94 08:04:07 am
-
- [text deleted...]
- >
- > My goodness is it slow! Is there any way to speed it up, perhaps by
- > bypassing the Clipboard? Thanks for any pointers.
- >
- > tell application "BBEdit 3.0"
- > activate
- > open alias "Mustela furo:Polya:Test 002.bbe"
- > open alias "Mustela furo:Polya:Test 001.bbe"
- > set lineCount to Number of Lines in window 1
- > --the only classes are Window and Application, no
- > --support for Word, Text item, or Character
- > set newLine to ""
- > repeat with i from 1 to lineCount
- > Go To Line i
- > --I originally had "Go to line i of Window 1"
- > --a definite "no-no"; thanks to Rich Siegel of
- > --BBEdit for this pointer.
- > Select Current Line
- > --the only things you can select are Current Line,
- > --Paragraph, and Everything. Any other selection must
- > --be through the Find command.
- > Copy
- > set newLine to clipboard
- > --is there a better way to do this, rather than
- > --go through the clipboard?
- > Exchange Windows
- > if newLine =82 "" then
- > Insert Text (newLine as text)
- > else
- > Insert Text return
- > end if
- > Exchange Windows
- > end repeat
- > end tell
-
- You should be able to set newLine to selection directly, without using
- the clipboard.
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- 10819 Auldine | selfstro@cs.trinity.edu
- San Antonio, TX 78230 | http://www.cs.trinity.edu/~selfstro/
- (210) 341-4624 | PGP Key available via finger
- =========================================================================
- Date: Thu, 8 Sep 1994 10:07:33 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: my own question
- In-Reply-To: Your message of "Thu, 08 Sep 94 20:33:37 +0900"
-
- >>that will........at a certain time on a certain date open a SimpleText
- >
- >I'm really keen to see how you get the date & time launching happening.
- >
- >Is the only way to have an applet in the startup items folder constantly
- >checking the time & date or what?
-
- Check out the Scheduler demo on gaea
-
- ftp://gaea.kgs.ukans.edu/applescript/demos/schedulerdemo.hqx
-
- You might also want to looking into using QuicKeys (if you own it), Chron, or
- Chronograph. I can't find the URL for Chron at the moment, and I don't think
- Chronograph is on the net. I'll pull it down from AOL tonight and put it up on
- gaea.
-
- I'm sure others can add to this list or provide the missing URLs.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Thu, 8 Sep 1994 14:22:02 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Boroditsky <sage!dave@NOC.TOR.HOOKUP.NET>
- Organization: Sage Design
- Subject: Re: Launching Excel from Fronti
-
- I have also experienced strange things with Excel.
-
- The way I launch it is with
- launch.anything(docname)
-
- This works great provided docname is an excel document. If you don't have a
- document you want to open, just create one, change the type and creator,
- launch it, and then delete it (once you have closed it from Excel).
-
-
- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
- | Everything is very very deeply \
- | I N T E R T W I N G L E D \
- | dave@sage.uucp/sage!dave@noc.tor.hookup.net \
- +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
- =========================================================================
- Date: Thu, 8 Sep 1994 12:15:26 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Kost <bvei87@HOBBES.BOEING.COM>
- Subject: who what where how
-
- Greetings
-
- I have a couple question about some of the traffic I've been
- seening here. If this is too redundant point me to info please....
-
- Is there any way to use dialogs or other user interface stuff
- with scripts, such as progress bars (other than the Tao one),
- change cursor, etc? I've seen references to userfirst(sp?).
-
- What is osaxen, endora?
-
- thanks
-
- Mike
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Michael R. Kost
- kost@netaxs.com
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- Help, I'm a rock!!!
- Frank Zappa
- =========================================================================
- Date: Thu, 8 Sep 1994 11:54:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
- Subject: Scriptable Finder question
-
- Newbie question: how do you tell the scriptable finder to launch
- an application? A one-liner would be best for my needs.
-
-
- thanks,
-
- Todd Main
- Motorola Dynamic Memory Products
- tmain@fsrampo.sps.mot.com
- (512) 933-6143
- =========================================================================
- Date: Thu, 8 Sep 1994 10:20:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dennis Birch <dennisb@HALCYON.COM>
- Subject: AS apps controlling AS apps
-
- I sent this message a few days ago, right before our system administrator
- screwed up my e-mail account. So I apologize about the repitition, but I'd
- really appreciate an answer, and I haven't seen one so far.
-
- ------------------^^^^^^^^^^^^^^^^^------------------^^^^^^^^^^^^^^^^^
-
- This is probably a dumb question, but I still consider myself a novice at
- AppleScripting, so I'm allowed, right?
-
- Can I have a master AS application send data to another AS application and
- GET data back from it? I haven't been able to figure out how to do it. That
- is, I think I'm successfully the second AS app the data, but I'm apparently
- not getting back any data.
-
- Thanks for any help on this.
-
- Dennis Birch
- =========================================================================
- Date: Thu, 8 Sep 1994 18:09:15 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: ScriptWizard 1.0.1x41 updater
-
- Hi folks,
-
- We posted an updater for ScriptWizard, taking version 1.0 to version
- 1.0.1x41, on Gaea and on AppleLink. This version fixes a handful of
- bugs in addition to those fixed in version 1.0.1fc1 (uploaded a month
- ago). The most important differences are a bunch of fixes to memory
- handling in the Dictionary windows, eliminating serious memory leaks.
- Also, the "cursor wars" in the Dictionary window are fixed at last.
-
- It seems there may be a corruption in the updater file that was uploaded
- to gaea; we are investigating. We'll announce on MACSCRPT as soon as
- it is safe to download it from gaea. For the time being, try if you wish
- but we have had reports of FTP/binhex errors while downloading the file.
-
- (If you are in a desperate hurry to get the update, you can find it on
- AppleLink.)
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Thu, 8 Sep 1994 13:28:53 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re> AS apps controlling AS apps
-
- >Can I have a master AS application send data to another AS application and
- >GET data back from it? I haven't been able to figure out how to do it. That
- >is, I think I'm successfully the second AS app the data, but I'm apparently
- >not getting back any data.
-
- Not quite sure what your asking for. If your talking about two AS "script"
- applications, then its just passing data to a handler and returning data. The
- slave application must be save as an AS application
-
-
- -- Master Application
-
- -- get data1 somehow
-
- tell application "slave"
- set theResult to doSomething(data1)
- end tell
-
-
-
-
- -- Slave Application
-
-
- on doSomething(someData)
- -- do something with someData and create returnData
- ---
- return returnData
- end
-
- steve
- =========================================================================
- Date: Thu, 8 Sep 1994 14:31:04 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Re: Open text file and read
-
- Long live the King...
-
- In regard to your question of opening a SimpleText file and reading it with
- Speech Manager...
-
- If the file in question is actually a SimpleText file (ie. type = "TEXT" and
- creator = "ttxt") and you're not concerned with the 32K limitation, you may want
- to use the Scriptable Text Editor to open the text file. Though the file will be
- opened as a scriptable text editor version, you'll have more scriptable control
- over the file and the text editor. You should also look into the scripting
- addition from Mark Alldritt called "Speech" which can be found in the Script
- Tools v1.3 Library. I've used this addition many times to read aloud items such
- as mail messages, contents of dialog messages I write in scripts, and values
- contained inside records of a FMPro database.
-
- In regards of your script's posting:
-
- >tell application "SimpleText copy"
- > open file "name of text file"
- > activate
- > Select Menu Item menu id 134 menu item id 5
- > quit application "SimpleText copy"
- >end tell
-
- try something like this script below...
-
- (Note: this needs the Scriptable Text Editor, the "Speech" scripting addition
- from Mark Alldritt, and a file with type and creator as that of a SimpleText
- file (or something readable by Scriptable Text Editor)).
-
- tell application "Scriptable Text Editor"
- launch
- open file "name of text file"
- speak contents of window 1
- quit application saving no
- end tell
-
- I believe you opened the file in the original script to allow yourself a chance
- to read along with the contents of the file. However, with the "Speech"
- scripting addition combined with the "Read/Write Commands" scripting addition
- which came with the AppleScript runtime package, you can read a file's contents
- directly off of the disk without dumping the contents into any window.
-
- I'll try to help out further if you need. Can just post the ? directly to the
- mailing list or contact me via e-mail.
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Thu, 8 Sep 1994 11:32:00 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dave Wise <Dave_Wise@COLOS.PIXAR.COM>
- Subject: End of File Error
-
- REGARDING End of File Error
- Has anyone ever gotten an end of file error? I keep getting one when I try
- to use the run script or read file command.
- =========================================================================
- Date: Thu, 8 Sep 1994 13:28:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: AS apps controlling AS apps
- In-Reply-To: Your message of "Thu, 08 Sep 94 10:20:00 PDT"
-
- Everyone,
-
- >I sent this message a few days ago, right before our system administrator
- >screwed up my e-mail account. So I apologize about the repitition, but I'd
- >really appreciate an answer, and I haven't seen one so far.
-
- Just to point out something else for those times that you have email problems,
- you can always retrieve the digests from gaea or get them from the listserv.
-
- If you send the message, INFO REFCARD to the listserv@dartmouth.edu address,
- you'll find out that you can get a list of archived files. The digests are
- updated daily (hourly?) and can be obtained with
-
- get macscript LOG9408
-
- I try to remember to pull back one of these on a weekly basis during the month
- and place it in the /applescript/docs/digests/ directory with a title like
- Aug94.todate. You will also find the digests going back to February (when the
- list was moved to Dartmouth) in that directory.
-
- Have fun.
-
- pf
- =========================================================================
- Date: Thu, 8 Sep 1994 14:41:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Scriptable Finder question
- In-Reply-To: <no.id> from "Todd Main" at Sep 8, 94 11:54:16 am
-
- --Todd Main wrote:
- >
- >Newbie question: how do you tell the scriptable finder to launch
- >an application? A one-liner would be best for my needs.
-
- Why do you want to use the Scriptable Finder to do this? All you
- need to do is type: tell application "app name" to activate.
- This works from AppleScript, and will launch any application you
- have on a mounted volume.
-
- -Hades
- =========================================================================
- Date: Thu, 8 Sep 1994 14:56:53 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Luis Muench <muench@SOLIX.FIU.EDU>
- Subject: A counting program
-
- Hello all:
-
- I was wondering if there is such a program that will count or
- tally the total number of keypresses and mouse clicks. I am researching a
- study that would either correlate or dispell RSI (repetitive stress
- injuries, a.k.a Carpal Tunnel or Tendinitis) with the amount of work one
- does per hour and/or per day. It would be a tool in diagnosing people at
- risk, etc.
-
- If you know of such a program or are interested in developing
- such a diagnostic and research tool, please contact me directly.
-
- TIA
-
- -Luis
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: ::: "My Karma Ran Over My Dogma"
- :: :: :: muench@fiu.edu
- : ;::::: Luis Muench - graphic artist
- : : FloridaInternationalUniversity
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- =========================================================================
- Date: Thu, 8 Sep 1994 12:17:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: Scriptable Finder question
-
- > Newbie question: how do you tell the scriptable finder to launch
- > an application? A one-liner would be best for my needs.
-
- tell application "Finder"
- open "Implements:Utility Folders:Microsoft Excel:Microsoft Excel"
- end tell
-
- or something like that. You need to use a reference for the 'open' command
-
- -roy, still hazy
- =========================================================================
- Date: Thu, 8 Sep 1994 17:36:25 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: magnet - The Personal Online Source
- Subject: [A] minimum hardware requirements for as 1.1?
-
- >Can anyone tell me what the minimum hardware requirements for >running
- >applescript 1.1 are? Can I run it on anymac, or is it like quicktim >that
- >I need at least a mac II to run it?
-
- You need at least an 68020 (Mac II,LC) to run AppleScript 1.1
-
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Thu, 8 Sep 1994 12:16:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dave Jaksha <jaksha@NOAO.EDU>
- Subject: debugger
-
- Is there a applescript enviroment that has a debugger and find, ect.
-
- Thanks - Dave
- =========================================================================
- Date: Thu, 8 Sep 1994 15:25:45 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Paul Du bois <Designland@AOL.COM>
- Subject: Re: Scriptable Finder question
-
- Todd Main writes:
-
- >>Newbie question: how do you tell the scriptable finder to launch
- an application? A one-liner would be best for my needs.<<
-
-
- tell application "Finder"
- activate
- select file "" of folder "" of startup disk
- open selection
- end tell
-
- Hope this helps
- John
- =========================================================================
- Date: Thu, 8 Sep 1994 15:40:15 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: debugger
- In-Reply-To: <no.id> from "Dave Jaksha" at Sep 8, 94 12:16:20 pm
-
- --Dave Jaksha wrote:
- >
- >Is there a applescript enviroment that has a debugger and find, ect.
-
- There are two that I know of that are shipping: Scripter from Main
- Event Software which I saw at MacWorld Boston this year. It looked ok,
- but there were way too many dialog boxes and it seemed to try and hold
- your hand a lot, but this could have been a side-effect of the way the
- demo was presented. The second is ScriptWizard, there's a demo version
- of this on gaea. From what I've seen of this program, it has some nice
- parts to it (specifically the dictionary feature which I liked a lot),
- but I never looked at the debugger and it the program struck me as still
- being in beta release rather than full 1.0 release. I'm also pretty
- sure that there will be other AppleScript debugging environments coming
- out in the near future since AppleScript is now a standard part of the
- System Software.
-
- -Hades
- =========================================================================
- Date: Thu, 8 Sep 1994 12:57:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: AS apps controlling AS apps
- In-Reply-To: <199409081734.KAA11217@netcom11.netcom.com>
-
- On Thu, 8 Sep 1994, Dennis Birch wrote:
-
- > Can I have a master AS application send data to another AS application and
- > GET data back from it? I haven't been able to figure out how to do it. That
- > is, I think I'm successfully the second AS app the data, but I'm apparently
- > not getting back any data.
-
- You can use the same "tell application" syntax, as follows:
-
- ASApp1 (receiver):
- on returnResult(x)
- return x * 3 --Actually, just writing x * 3 will work too
- end returnResult
-
- ASApp2 (sender):
- tell application "ASApp1"
- returnResult(3)
- end tell
-
- If you run ASApp2 from Script Editor, you will get a 9 in the result
- window (3 * 3).
-
- This also works for networked AS apps:
- tell application "ASApp1" of machine "Some other machine" of zone "Some
- other zone, if present"
-
- Hope this helps,
- Derrick
- =========================================================================
- Date: Thu, 8 Sep 1994 13:13:26 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
- Subject: Re: who what where how
-
- >Is there any way to use dialogs or other user interface stuff
- >with scripts, such as progress bars (other than the Tao one),
- >change cursor, etc? I've seen references to userfirst(sp?).
-
- i tried facespan and eventually gave it up. i now use hypercard for my
- front end. only difficulty is that the scripts are limited to 30k compiled
- which translates to about 7k of typed script.
-
- >What is osaxen, endora?
-
- osaxen = plural of osax
- osax is to applescript as xcmd is to hypercard
-
- kee nethery
- =========================================================================
- Date: Thu, 8 Sep 1994 16:41:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John G Dorsey <jd5q+@ANDREW.CMU.EDU>
- Subject: Speaking selection/Clipboard?
-
- My site uses an internally developed mail client, which is, of course,
- not scriptable. =)
-
- I have Script Tools, which allegedly can speak (using Speech Manager)
- input parameters. What would be the most efficient way to make a script
- that could speak some selected or copied text? The idea would be to make
- an applet, which I would launch from the Finder after selecting/copying
- the text.
-
- Thanks!
- John Dorsey <jd5q+@andrew.cmu.edu>
- Carnegie Mellon University <jdo240@ohm.ece.cmu.edu>
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- ftp://lightspeed.pc.cc.cmu.edu/
- http://lightspeed.pc.cc.cmu.edu/
- (under construction!)
- =========================================================================
- Date: Thu, 8 Sep 1994 14:30:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Problem running scripts on PowerMac 6100
-
- Hello there,
-
- I'm having a problem running some scripts on a PowerMac 6100/60av that ran
- fine on the Centris 610 that I wrote them on. They are both running System
- 7.5b2. The Centris 610 is running a wide variety of extensions and the
- PowerMac is running the bare minimum extensions.
-
- The Finder sometimes gets a -111 error which looks some sort of memory error.
- I've also had a variety of other crashes. I have never had the full script
- run successfully.
-
- Here's the chunk of script that just caused the -111 error.
-
- tell application "Finder"
- set folderName to "DTS Send Prefs"
- if folder folderName in preferences folder exists then <-- problem here
- set DTSPrefFolder to folder folderName in preferences folder
- if not (file fileName in DTSPrefFolder exists) then
- display dialog "The \"DTS WhomToSendTo\" file doesn't exist!"
- my CreateWhomToSendTo(DTSPrefFolder as string)
- end if
- else -- "DTS Send Prefs" does not exist
- -- We want to create a new folder and the files that go in it.
- make new folder at preferences folder with properties {name:folderName}
- my CreateWhomToSendTo(folder folderName in preferences folder as string)
- end if -- "DTS Send Prefs" exists
- end tell
-
- The "if folder folderName in preferences folder exists then" usually times
- out and the Finder gets the -111 error. The folder does exist.
-
- Is there something different about the PowerMacs? Or is there something
- obvious that I'm missing here.
-
- This script has run on the PowerMac before but I've been getting a lot of
- errors on the PowerMac whenever I try to run my main script which loads this
- script. (I've tried running this script through the main script and as a
- standalone script). Again, these scripts work fine on my Centris 610.
-
- Thanks for the list,
-
- Greg
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- =========================================================================
- Date: Thu, 8 Sep 1994 15:45:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: debugger
-
- >--Dave Jaksha wrote:
- >>
- >>Is there a applescript enviroment that has a debugger and find, ect.
- >
- > There are two that I know of that are shipping: Scripter from Main
- >Event Software which I saw at MacWorld Boston this year. It looked ok,
- >but there were way too many dialog boxes and it seemed to try and hold
- >your hand a lot, but this could have been a side-effect of the way the
- >demo was presented.
-
- Brian:
-
- Do you have an email address (or even the phone) of Main Event?
-
- I (and a collegue) talked to Cal Simone at WWDC this year. Strange guy!
-
- Have they annouced a ship date yet or are they mearly in a late beta?
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Fri, 9 Sep 1994 11:51:33 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Setting memory sizes of apps??
-
- Can you safely reduce the default (?) memory allocation of 200K given to AS
- standalone apps? (Some of us have got less than 10MB RAM....)
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Thu, 8 Sep 1994 16:55:37 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: debugger
-
- >--Dave Jaksha wrote:
- >>
- >>Is there a applescript enviroment that has a debugger and find, ect.
- >
- > There are two that I know of that are shipping: Scripter from Main
- >Event Software which I saw at MacWorld Boston this year. It looked ok,
- >but there were way too many dialog boxes and it seemed to try and hold
- >your hand a lot, but this could have been a side-effect of the way the
- >demo was presented.
-
- That last piece of mail was meant to go to Brian directly!
-
- Anyhow Cal just gave me a call! He says they're aren't "way too many dialog
- boxes". I haven't see the product yet so I can't comment one way or the
- other.
-
- Gotta be careful with those mail addresses :-)
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Thu, 8 Sep 1994 17:22:02 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Derrick Schneider <derrick@NETCOM.COM>
- Subject: Re: Help with a script
- In-Reply-To: <199409080009.RAA29452@netcom9.netcom.com>
-
- On Wed, 7 Sep 1994, Richard Petty wrote:
-
- > Oops! SimpleText isn't scriptable and the Scriptable Text Editor (what I
- > actually had in mind) -- included in the AppleScript developer's kit --
- > doesn't read text aloud.
-
- However, you can do what you wish. As part of the Script Tools collection
- of scripting additions, there is a Speech scripting addition. I actually
- wrote a script that would read the contents of Scriptable Text Editor,
- but I don't have it in front of me so I'm working off of memory:
-
- tell application "Scriptable Text Editor"
- speak (the contents of window 1) voice "Male Voice" --Or whatever
- voice you choose
- end tell
- =========================================================================
- Date: Thu, 8 Sep 1994 22:25:29 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Re: ScriptWizard 1.0.1x41 updater
-
- Hi folks,
-
- In Regards to my letter <199409081757.AA05040@exnet.com>:
- >
- > It seems there may be a corruption in the updater file that was uploaded
- > to gaea; we are investigating. We'll announce on MACSCRPT as soon as
- > it is safe to download it from gaea. For the time being, try if you wish
- > but we have had reports of FTP/binhex errors while downloading the file.
- >
-
- It seems that the archive is OK; Fred Terry has downloaded and unpacked
- it OK. (If you have difficulty, we recommend FTPing it down with automatic
- de-binhexing turned off, and then manually de-binhexing it afterwards.)
-
- The file location on gaea is:
-
- applescript/updates/ScriptWiz1.0->1.0.1x41.sea.hqx
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Fri, 9 Sep 1994 00:08:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: debugger
- In-Reply-To: Your message of "Thu, 08 Sep 94 15:45:56 PDT"
-
- Kevin,
- >
- >Do you have an email address (or even the phone) of Main Event?
- >
- >I (and a collegue) talked to Cal Simone at WWDC this year. Strange guy!
-
- Check the faq. Honest, it's in there.
-
- pf
- =========================================================================
- Date: Fri, 9 Sep 1994 16:34:38 +1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Parry <dparry@OZEMAIL.COM.AU>
- Subject: Re: Open text file and read
-
- >In regard to your question of opening a SimpleText file and reading it with
- >Speech Manager...
-
- Excuse me for perhaps being impertinent, but why the hell are so many
- people trying to get the Speech Manager to read stuff?
-
- Are you just trying to do what the Apple ads think you should do?
- (If all the queries are for work with blind people I could understand)
- But, hey, I find all of the voices in the speech manager really annoying.
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- > dparry@ozemail.com.au Voice: + 61 7 356 7645 <
- > The System Fax: + 61 7 356 7790 <
- > 46 Lansdowne Street DJP Mobile: 015 150 939 <
- > Wilston QLD 4051 MJE Mobile: 018 732 521 <
- > Australia <
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- =========================================================================
- Date: Fri, 9 Sep 1994 13:21:54 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
- Subject: Password Help
-
- I am lucking for something like this I would like to be
- able to have a password command, which I can start before
- all the rest of an AppleScript gets executed.
-
- I tried the Password OSAXEN alredy, it would be good, but
- it compiles the password differently about every 3rd time.
- so it is actually useless.
-
- Rolf
-
- \|/
- (o o)
- ________________________________oOo__(_)__oOo_________________________________
- ___/\_ | Rolf Kocherhans Internet : rolfk@vetvir.unizh.ch
- / o \/| | University Inst.for Virology Telephone: (+41) 1 3651538
- / _| | Winterthurerstr. 266a Faximile : (+41) 1 3630140
- /_/\__/-\/ | 8057 Zurich SWITZERLAND
- ______________________________________________________________________________
- If it wasn't for Windows, we wouldn't have anything to compare Mac's to
- =========================================================================
- Date: Fri, 9 Sep 1994 14:01:28 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: WalrathW <walrathw@RFERL.ORG>
- Subject: Re: script wizard updater
-
- I too had problems debinhexing the ScriptWizard updater file at the =
- MACSCRPT archives. Out of curiosity, I took a look inside the file and =
- noticed that the first couple lines were kind of screwed up. After editing =
- these lines, I was able to defunk the archive without problems.
-
- If you have problems, try going in with a text editor, moving the text =
- which begins "(this file must be converted..." to a newline, and deleting =
- the garbage above it. Eventually a new archive should be uploaded if there =
- really is a problem with the copy there.
-
- -wayne
- =========================================================================
- Date: Fri, 9 Sep 1994 08:40:02 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: debugger
- In-Reply-To: <no.id> from "Kevin Purcell" at Sep 8, 94 04:55:37 pm
-
- --Kevin Purcell wrote:
- >
- >Anyhow Cal just gave me a call! He says they're aren't "way too many dialog
- >boxes". I haven't see the product yet so I can't comment one way or the
- >other.
-
- Well, gee, now there's a big surprise. I certainly wouldn't expect
- the programmer of the product to agree to my criticisms. Remember, all
- of that stuff I posted in my previous article was my opinion of Scripter
- and ScriptWizard. As always, YMMV.
-
- -Hades
- =========================================================================
- Date: Fri, 9 Sep 1994 08:42:29 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Problem running scripts on PowerMac 6100
- In-Reply-To: <no.id> from "Greg Francis" at Sep 8, 94 02:30:16 pm
-
- --Greg Francis wrote:
- >
- >Here's the chunk of script that just caused the -111 error.
- >
- >tell application "Finder"
- > set folderName to "DTS Send Prefs"
- > if folder folderName in preferences folder exists then <-- problem here
-
- I'm kind of surprised this line compiled correctly. The syntax is
- incorrect. It should read like this:
-
- if exists folder folderName in preferences folder then
-
- The exists command takes as it's argument a file/folder reference.
- The argument is supposed to come after the command.
-
- -Hades
- =========================================================================
- Date: Fri, 9 Sep 1994 08:03:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Buberel <jbuberel@UIUC.EDU>
- Subject: Re: ScriptWizard 1.0.1x41 updater
-
- Paul,
-
- I'm not so sure the archive is OK. Using anarchie 1.3 with automatic
- decoding turned off, stuffit expander 3.5.1 gives me an error:
-
- Sorry, a disk related error (-48) has occurred
-
- and then quits. I would imagine this is the way most people are going to get
- and decode the file, so you might want to re-binhex and repost it.
-
- -jason
-
- ============================================
- Jason L. Buberel -=+=- Graduate Student
- University of Illinois - Neuroscience
- 217.244.0115 -=+=- jbuberel@uiuc.edu
- ============================================
-
- ------ From: Macintosh Scripting Systems, Fri, Sep 9, 1994 ------
-
- Hi folks,
-
- In Regards to my letter <199409081757.AA05040@exnet.com>:
- >
- > It seems there may be a corruption in the updater file that was uploaded
- > to gaea; we are investigating. We'll announce on MACSCRPT as soon as
- > it is safe to download it from gaea. For the time being, try if you wish
- > but we have had reports of FTP/binhex errors while downloading the file.
- >
-
- It seems that the archive is OK; Fred Terry has downloaded and unpacked
- it OK. (If you have difficulty, we recommend FTPing it down with automatic
- de-binhexing turned off, and then manually de-binhexing it afterwards.)
-
- The file location on gaea is:
-
- applescript/updates/ScriptWiz1.0->1.0.1x41.sea.hqx
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Fri, 9 Sep 1994 10:25:03 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Setting memory sizes of apps??
-
- >Can you safely reduce the default (?) memory allocation of 200K given to AS
- >standalone apps? (Some of us have got less than 10MB RAM....)
-
- The definite answer is "sometimes." You can experiment reducing RAM and
- putting the script through its hardest paces. A lot depends on what your
- variables might hold. I've run into cases in which 200K was not enough.
-
- Danny Goodman
- =========================================================================
- Date: Fri, 9 Sep 1994 09:24:58 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: script wizard updater
- In-Reply-To: Your message of "Fri, 09 Sep 94 14:01:28 BST"
-
- Gang,
-
- >I too had problems debinhexing the ScriptWizard updater file at the =
- >MACSCRPT archives. Out of curiosity, I took a look inside the file and =
- >noticed that the first couple lines were kind of screwed up. After editing =
- >these lines, I was able to defunk the archive without problems.
- >
- >If you have problems, try going in with a text editor, moving the text =
- >which begins "(this file must be converted..." to a newline, and deleting =
- >the garbage above it. Eventually a new archive should be uploaded if there =
- >really is a problem with the copy there.
-
- Very puzzling. I was using Anarchie 1.3.1 to download it and I was letting it
- do the auto-convert without any problems. Whatever the case, I've pulled down
- the archive, made a change, and put the new version back in the Updates
- directory.
-
- Let me know if there are any other problems.
-
- pf
- =========================================================================
- Date: Fri, 9 Sep 1994 08:10:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: Scriptable Finder question
-
- > --Todd Main wrote:
- > >
- > >Newbie question: how do you tell the scriptable finder to launch
- > >an application? A one-liner would be best for my needs.
- >
- > Why do you want to use the Scriptable Finder to do this? All you
- > need to do is type: tell application "app name" to activate.
- > This works from AppleScript, and will launch any application you
- > have on a mounted volume.
- >
- > -Hades
-
- With at at least one exception that I know of. There is a bug in SITcomm that
- prevents it from activating if it's splash screen would be completely hidden
- by another window. I've had to work around this by selecting SITcomm and then
- launching it using the Finder.
-
- This is how I had to do it with SITcomm.
-
- tell application "Finder"
- select alias "Calvin(I):AS Utilities:SITcomm "
- open selection
- end tell
-
-
- Greg
- =========================================================================
- Date: Fri, 9 Sep 1994 09:47:57 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
- Subject: Trapping user responses during copying?
-
- AS folk,
- We use a script that copies System Folder files, and I don't want users to
- be able to intervene and stop the copying. A finderLib command, like the
- following, is used to copy files, and it presents to users a "Copy" dialog
- box with a status bar and a "Stop" button. Can attempts to stop the
- copying be trapped so that copying continues without interruption? Can the
- Command-. (cancel) keystrokes be trapped too?
-
- tell finderLib to copyFiles from "hd:imdc" to "hd:scratch:" without warning
-
- Thanks,
- Chris
- ~~~~
- Chris Dowling, Manager, SOE Computer Lab,
- 1025 W. Johnson St., Madison, WI 53706, (608) 263-4339
- cdowling@facstaff.wisc.edu
- ~~~~
- =========================================================================
- Date: Fri, 9 Sep 1994 08:53:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Problem running scripts on PowerMac 6100
-
- >--Greg Francis wrote:
- >>
- >>Here's the chunk of script that just caused the -111 error.
- >>
- >>tell application "Finder"
- >> set folderName to "DTS Send Prefs"
- >> if folder folderName in preferences folder exists then <-- problem here
- >
- > I'm kind of surprised this line compiled correctly. The syntax is
- >incorrect. It should read like this:
- >
- > if exists folder folderName in preferences folder then
- >
- > The exists command takes as it's argument a file/folder reference.
- >The argument is supposed to come after the command.
- >
- >-Hades
-
- Take a look at the Language Guide page 99.
-
- referenceToObject exists
- exists referenceToObject
-
- Both forms are legal.
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Fri, 9 Sep 1994 10:57:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Organization: Alta Group
- Subject: Cron and Chronograph
-
- Folks,
-
- As promised, you'll find these two applications on gaea. They both allow
- you to execute scripts a predetermined times.
-
- ftp://gaea.kgs.ukans.edu:applescript/addons/Chronograph1.02.sit.hqx
- ftp://gaea.kgs.ukans.edu:applescript/addons/Cron1.0d16.sit.hqx
-
- Chronograph is a shareware ($15) utility that checks once per minute to
- see if anything is scheduled. Anything that can be double-clicked in the
- Finder can be scheduled for execution. This has both 680x0 and PowerPC
- versions.
-
- Cron is Chris Johnson's (Gatekeeper) daemon. It also executes applications
- at specificed times. It uses a crontab file to determine what needs to
- execute.
-
- Enjoy.
-
- pf
-
- --
- Fred Terry Alta Group of Cadence +1 913 841 1283
- =========================================================================
- Date: Fri, 9 Sep 1994 11:10:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Problem running scripts on PowerMac 6100
-
- At 08:53 9/9/94 -0700, Kevin Purcell wrote:
- >Take a look at the Language Guide page 99.
- >
- >referenceToObject exists
- >exists referenceToObject
- >
- >Both forms are legal.
-
- Hmmm...the "backwards" form isn't *entirely* limited to the exists command,
- either.
-
- For example, the following script successfully poses the expected dialog:
-
- "Test" display dialog
-
- Is it generally true that the direct object may preceed the command name?
- It might be:
-
- "Test" display dialog buttons {"OK"}
-
- also does the expected thing, as does
-
- 3 beep
-
- Thanks, Kevin
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 9 Sep 1994 14:10:07 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: Cron and Chronograph
-
- >Folks,
- >
- >As promised, you'll find these two applications on gaea. They both allow
- >you to execute scripts a predetermined times.
- >
- >ftp://gaea.kgs.ukans.edu:applescript/addons/Chronograph1.02.sit.hqx
- >ftp://gaea.kgs.ukans.edu:applescript/addons/Cron1.0d16.sit.hqx
- >
- >Chronograph is a shareware ($15) utility that checks once per minute to
- >see if anything is scheduled. Anything that can be double-clicked in the
- >Finder can be scheduled for execution. This has both 680x0 and PowerPC
- >versions.
- >
- >Cron is Chris Johnson's (Gatekeeper) daemon. It also executes applications
- >at specificed times. It uses a crontab file to determine what needs to
- >execute.
- >
-
- I have successfully downloaded these files but continue to have difficulty
- downloading the ScriptWizard Update. I have tried all suggestions posted
- to the list, including your own, but to no avail. Sorry to be such a pain
- but is just doesn't work for me.
-
- =====================================================================
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121 FAX: (912) 453-6582
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- =====================================================================
- =========================================================================
- Date: Fri, 9 Sep 1994 20:19:43 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] writing an osax that calls script objects
-
- Hello all,
-
- I have a few questions regarding writing an osax:
-
- - I'm trying to write one and would like to have a way of calling, from
- within it, a script object or a handler defined by the calling script. Is
- that possible? If so, how's it done?
-
- - I have almost no documentation on writing osaxen; the only thing I have
- is a doc by Donald Olson, dated December 27, 1992. Is there something more
- up-to-date and free of charge? If not, what are the 'charged' options? In
- particular, I have no idea whatsoever about how to write the 'aete'
- resources. I've heard of a hypercard stack that helps in their editting,
- but have no clue where to get it from.
-
- Please reply directly to me (wlt@mercurio.uc.pt), since for some reason I
- haven't been receiving the digests.
-
- Thanks for any and all help.
-
-
- Wagner Luiz Truppel WLT@MERCURIO.UC.PT
-
- *** I don't think. Therefore, I'm not sure I am. ***
- ___________________________________________________________
- =========================================================================
- Date: Fri, 9 Sep 1994 12:05:26 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: script wizard updater
-
- >Gang,
- >
- >>I too had problems debinhexing the ScriptWizard updater file at the =
- >>MACSCRPT archives. Out of curiosity, I took a look inside the file and =
- >>noticed that the first couple lines were kind of screwed up. After editing =
- >>these lines, I was able to defunk the archive without problems.
- >>
- >>If you have problems, try going in with a text editor, moving the text =
- >>which begins "(this file must be converted..." to a newline, and deleting =
- >>the garbage above it. Eventually a new archive should be uploaded if there =
- >>really is a problem with the copy there.
- >
- >Very puzzling. I was using Anarchie 1.3.1 to download it and I was letting it
- >do the auto-convert without any problems. Whatever the case, I've pulled down
- >the archive, made a change, and put the new version back in the Updates
- >directory.
- >
- >Let me know if there are any other problems.
- >
- >pf
-
- Same for me with Anarchie 1.2.1, no problems having it auto-convert or
- doing the patch.
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Fri, 9 Sep 1994 15:43:19 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Re: Speaking Selection/Clipboard?
-
- John G Dorsey <jd5q+@ANDREW.CMU.EDU> wrote:
-
- >I have Script Tools, which allegedly can speak (using Speech Manager)
- >input parameters. What would be the most efficient way to make a script
- >that could speak some selected or copied text? The idea would be to make
- >an applet, which I would launch from the Finder after selecting/copying
- >the text.
-
- If you also have Jon's Command Scripting Addition, this can be done. After you
- select some text and copy it to the clipboard you can write a very simple script
- or applet to read it back. Just type in the script line below:
-
- speak (the clipboard as string)
-
- If you save it as an applet, you can invoke it by double-clicking after copying
- the text selection to the clipboard. I'd prefer to use OSA Menu and save this
- script in the "Universal Scripts" Folder. This method would eliminate locating
- the applet's icon underneath screen clutter.
-
- Does anyone know how to copy a selection of text from a non-scriptable
- application to the clipboard via applescript? They only way I can think of is,
- maybe, to use the Menu Events extension. Since the Edit menu is always in the
- same place for practically all Mac application, I would think that this should
- work.
-
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
- =========================================================================
- Date: Fri, 9 Sep 1994 15:03:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rob Dewhirst <robd@FARALLON.COM>
- Subject: "Other" Cron sent to gaea.
-
- When I saw version 1.0d16 of cron on gaea, I examined it to find if the
- version I had was more recent. It looks like there are at least two versions
- of cron, one by Chris Johnson and one by Mark Malson (the one I have). So
- including Chronograph, there are three versions.
-
- I sent the one I have to gaea, because I believe it is simpler and easier to
- set up.
- =========================================================================
- Date: Fri, 9 Sep 1994 15:26:04 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty-RWVR90@EMAIL.SPS.MOT.COM>
- Subject: Dict. Error
-
- REGARDING Dict. Error
- We've set up a 4D server on a Macintosh in our zone. Last night I ran the
- "4D AppleScript" application on my own machine and was able to extract data from
- the 4D server I pointed it to.
- This morning I launched the "4D AppleScript" program on the server, running
- concurrently with with the 4D server.
- I went back to my desk and tried to link to it. I was able to link to the
- server Macintosh, but the error message "Can't open the application's
- dictionary".
-
- Thanks in advance--
- Richard Petty
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Fri, 9 Sep 1994 15:39:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: ScriptWizard updater
-
- Hello all,
-
- We continue to have trouble with the ScriptWizard updater on gaea, so I'm
- blowing it away. I've alerted Full Moon so they can send a replacement.
-
- Sorry for all of the bother.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Fri, 9 Sep 1994 16:25:35 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: "Other" Cron sent to gaea.
- In-Reply-To: Your message of "Fri, 09 Sep 94 15:03:05 PDT"
-
- Hi all,
-
- Rob Dewhirst has placed yet another Cron on gaea. This one was written by Mark
- Malson. You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/addons/Cron1.0.0.sit.hqx
-
- He thinks this one is simpler and easier to set up.
-
- Have a good weekend.
-
- pf
- =========================================================================
- Date: Fri, 9 Sep 1994 17:50:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Comments: Warning -- original Sender: tag was ross@BNR.CA
- From: ab026@FREENET.CARLETON.CA
- Subject: Re: Speaking Selection/Clipboard?
-
- ktran@cc.atinc.com wrote:
-
- >Does anyone know how to copy a selection of text from a non-scriptable
- >application to the clipboard via applescript? They only way I can think of is,
- >maybe, to use the Menu Events extension. Since the Edit menu is always in the
- >same place for practically all Mac application, I would think that this should
- >work.
-
- As author of Menu Events, I would advise that James Davis' AutoType OSAX
- is probably better for this task. You can tell it to "press" Command-C.
- KeyQuencer would likely do the trick as well.
-
- Ross Brown - AWOL Software Productions
- PO Box 24207, 300 Eagleson Road, Kanata, Ontario, Canada K2M 2C3
- publisher of AWOL Utilities - "the best deal in freeware!"
- ab026@freenet.carleton.ca
- =========================================================================
- Date: Fri, 9 Sep 1994 22:14:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: FileMaker Pro & copying Text field.
-
- >- AppleScript 1.1 and FileMaker Pro 2.1v1
- > this works fine for almost all situations EXCEPT
- > when the text field it is copying is a text field with
- > a carriage return/Line feed(CR). The Field that I
- > am copying into will only get the text up to the CR.
-
- FileMaker uses a "vertical tab" to represent CR's in text fields, but
- apparently it gets converted by the "get".
-
- Are there any string commands (OSAXen) for AppleScript that will do a
- replace? In Frontier, you could:
-
- verticalTab = char(19) << I think it's 19, where's my chart...
- string.replaceAll(tempString, cr, verticalTab)
-
- Of course there is a slow way to do it directly in AppleScript: if
- tempString contains verticalTab then loop thru each character....
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Fri, 9 Sep 1994 22:14:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: Speaking Selection/Clipboard?
-
- >>What would be the most efficient way to make a script
- >>that could speak some selected or copied text?
- >
- >Does anyone know how to copy a selection of text from a non-scriptable
- >application to the clipboard via applescript?
-
- Player Runtime is only $25, and it would certainly suffice for simple
- tasks, eithor/or:
- do menu menu item "Copy" of menu "Edit"
- type "c" holding command
-
- Of course we think the full version is worthwhile for serious scripting of
- non-scriptable apps.
- ftp://gaea.kgs.ukans.edu/applescript/PRs/PlayerInfo.sit.hqx
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Fri, 9 Sep 1994 22:14:27 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: Scriptable Finder question
-
- > Why do you want to use the Scriptable Finder to do this? All=
- you
- >need to do is type: tell application "app name" to activate.
- > This works from AppleScript, and will launch any application=
- you
- >have on a mounted volume.
-
- Actually, any app that supports the 4 required events (I think that's=
- the
- limitation ... or is it the "AE aware" bit set?). The venerable=
- TeachText,
- among others, doesn't. (Yes, SimpleText does, but not everyone has=
- a new
- machine or system software.)
-
- Here's a little tidbit (included with Player) for those who don't=
- have the
- Scriptable Finder:
-
- on tellFinderToOpen(path)
- ensureFileExists(path) -- optional error checking
- set theParent to alias (parentFolder(path))
- =20
- tell application "Finder"
- -- the System 7.0 Finder is somewhat scriptable
- -- but lacks a dictionary
- =ABevent FNDRsope=BB theParent given =ABclass fsel=BB:{alias=
- (path as string)}
- end tell
- end tellFinderToOpen
-
- ensureFileExists & parentfolder are left as an exercise to the reader
- (though of course I'll be happy to supply them on request).
-
- cheers,
-
- -- SSL, PreFab Software ... who scripts non-scriptable apps now &=
- then :)
- =========================================================================
- Date: Fri, 9 Sep 1994 21:37:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
-
- subscribe MacScripting digest yosus@mcs.com
- =========================================================================
- Date: Fri, 9 Sep 1994 21:37:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
-
- subscribe MacScripting digest Tim Walsh
- =========================================================================
- Date: Fri, 9 Sep 1994 21:39:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Couple scripting questions...
-
- Sorry for the vague subject, but I couldn't come up with anything better...
-
- 1) is it possible to have a variable resolve to a record label?
-
- This won't work:
-
- set Fred to "Wilma"
- set Barny to {Fred:85}
- Barny
-
- Result: {Fred:85}
-
- I know a label shouldn't be a string ( I've even tried ("wilma" as
- variable) or ("wilma" as label)
- Bottom line is there a way to dynamically label records?
-
- 2) along the same lines, is there a way to 'compound' variable. Again as in:
-
- set List to {1,2,3}
- repeat with i from 1 to (count of list)
- set variable&i to i + 10
- end repeat
-
- I have found other ways of doing what I originally wanted to, but was
- curious about approaches to these two problems.
-
- 3) The scriptable finder refuses to open a file more than once even if it
- has been closed. An example would be a script that opens a file, thats
- all. Close that file from within the app. Run the same script again and I
- get an error from the finder saying that the file is already open, though
- it clearly isn't anymore. The file passes the exists test as well?? Do I
- have to ask the files respective app if it exists? And what if the app
- isn't scriptable...
-
- Thanks for any help...
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Sat, 10 Sep 1994 13:43:34 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] Constants in AS?
-
- Greetings,
-
- is there a way to declare constants in AS, something like a CONST in Pascal
- or a #define in C? I've been using property declarations for some nasty
- hard-wired info scattered thru in some of my AS scripts, but I don't find
- that solution very elegant.
-
- Thanks.
-
- Wagner Luiz Truppel WLT@MERCURIO.UC.PT
-
- *** I don't think. Therefore, I'm not sure I am. ***
- ___________________________________________________________
- =========================================================================
- Date: Sat, 10 Sep 1994 13:44:09 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] Symantec 7's address
-
- >Peter Speck wrote:
-
- >Too add more to the list of tools: the 'Aete Editor b3' (I found it on
- >Symantec 7) is a HyperCard stack. It is nice, as it is easy to navigate
- >around, adding classes and events to the proper suite, etc.
- >One hint is to make the card larger, and show the hidden fields. Especially
- >in editing the properties of a class, I found this usefull.
-
- I suppose Symantec 7 is some file server, but what's its address and can
- one ftp anonymously to it?
-
- Thanks.
-
- Wagner Luiz Truppel WLT@MERCURIO.UC.PT
-
- *** I don't think. Therefore, I'm not sure I am. ***
- ___________________________________________________________
- =========================================================================
- Date: Sat, 10 Sep 1994 13:44:35 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] AE User Terminology Res Dev Note ?
-
- Greetings,
-
- the Apple Event Registry mentions a document by the name 'Apple Event User
- Terminology Resources Developer Note'. Could someone tell me where I can
- find this document, if it's still up-to-date? I need to find some
- information on writing 'aete' resources.
-
- Thanks!
-
- Wagner Luiz Truppel WLT@MERCURIO.UC.PT
-
- *** I don't think. Therefore, I'm not sure I am. ***
- ___________________________________________________________
- =========================================================================
- Date: Sat, 10 Sep 1994 08:35:36 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Thiel <tthiel@FIREFLY.PRAIRIENET.ORG>
- Subject: Re: POLLS CLOSE TOMORROW
- In-Reply-To: <199409081508.AA04570@firefly.prairienet.org>
-
- We need a newsgroup
- =========================================================================
- Date: Sat, 10 Sep 1994 17:21:51 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Sin Chuek Ming, Desmond" <dcmsin@HK.SUPER.NET>
- Subject: gaea mirror site
-
- Hi,
-
- Is there a mirror site for gaea? Trying to access gaea through my SLIP
- account from Hong Kong, it takes forever just to get a directory listing.
-
- Thanks.
-
-
- -Des
-
- --
- Desmond Sin |Internet: dcmsin@hk.super.net
- Precision Marketing Ltd. |(852) 802-2389 voice
- Hong Kong |(852) 802-0888 fax
- =========================================================================
- Date: Sat, 10 Sep 1994 13:31:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Aiken <marka@EE.MCGILL.CA>
- Subject: New File Tracker version announcement
-
- Hi, all...
-
- This message is a little late, so please forgive me if it's a little
- out of synch with Fred's notice of the file posting some time ago. This is
- just an announcement of the newest version of File Tracker, now on Gaea,
- Sumex, etc.
-
- -- (Begin announcement)
-
- File Tracker: a file/folder watching utility
-
- File Tracker v1.5 is a major upgrade to File Tracker v1.0
- and is recommended to all users. This package should REPLACE the
- older v1.0 package on archives. The upgrade is free to
- registered users; write to the author for more information.
-
- File Tracker is a utility package that "Watches" files or
- folders on your hard drive, or on other people's hard drives
- over a network. File Tracker is unique in that it can detect
- exactly what happened when a watched folder or file changes.
- It can detect seperately, for example, files arriving in a
- folder or files being renamed, and perform actions on the
- files involved. A wide range of events are recognized.
-
- File Tracker offers a large library of built-in, pre-fab
- actions that it can take in response to events, but also ties
- in closely with AppleScript so you can write your own responses.
- Example scripts and a few scripting additions are provided.
-
- File Tracker is ShareWare $15US/$20Cnd, but is fully
- functional "out of the box" and includes a full manual. It has
- been extensively beta-tested and is compatible with all Mac
- models. FILE TRACKER REQUIRES SYSTEM 7 OR BETTER.
-
- For a copy of the package, or more information, write to
- the author at the address below.
-
- ----------------------------------------------------------------------------
- | Mark A. Aiken marka@ee.mcgill.ca |
- | Mac wizard and shareware author "No Hablo Intel" |
- | Dept. of EE, McGill University, Montreal, CANADA |
- ---------------------------------------------------------------------------
- -
- =========================================================================
- Date: Sat, 10 Sep 1994 17:00:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: Timer items?????
-
- In the August Macscript digest somebody asked....................
- In the early betas of AS, there was a folder you could put in your
- system folder called something like "Timer Items" or something like
- that and each of the items you wanted run at a specific time would be
- renamed to that time... so the file would be "[harddisk]:System
- Folder:Timer Items:5:00 PM" and it would run at 5pm. Did this get
- dropped from the final?
- Before I saw this I was going to ask if it was possible to name a file a
- time and date, ie. (5:00pm 9/11/94), and have an application or a script
- that would run in the background and scan the files, calling up a file
- whenever it's name matches the time. This item in august digest question
- sounds like it would do this. But...........
- Nobody answered, does anybody know if this exists? It would be very
- useful (at least to me), If anybody knows of it's existance or have any
- knowledge of it, Or if you can think of another way to do this. I know
- about Chron, but it's just not the same.I would appreciate any
- info.Thanx.........KingShit
- =========================================================================
- Date: Sat, 10 Sep 1994 16:06:14 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Phil Corchary <philc@ENGINEER.MRG.USWEST.COM>
- Subject: AppleScript newbie question
-
- I'm new to AppleScript, and a new subscriber to this list, so bear with me ..
-
- Question one ... is there a FAQ for a) this list, b) AppleScript.
- Question two ... I'm writing a script that uses Anarchie to ftp a file,
- then copy it to an AppleShare server. I have two questions in regard to this.
- First, how would you recommend changing the file type and creator of the
- file? Is there an Add-On for that? Is there a good scriptable application
- that can do this (FileBuddy, Resedit and Bunchtyper all of which I use
- aren't scriptable). The second part of this is, I'm using the MountVol
- Add-On to mount the fileserver - but how do I UNmount it? Or is there
- a better way in general to do this? Maybe a way to copy the file w/o
- mounting the server? P
-
- Thanks in advance! philc
- (please reply in e-mail as well as to the list ... thx)
- --
- Phil Corchary / Network Specialist / U S WEST MRG, Inc.
- philc@mrg.uswest.com / AppleLink=PCORCHARY / eWorld=philc
- All statements and opinions are mine, and not my employer's
- =========================================================================
- Date: Sat, 10 Sep 1994 17:45:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: applescript gopher site
-
- I know this is probably old news ("nobody tells me nothing") but this is
- a good applescript gophersite. Probably S.O.S but
- W.T.F................KingShit
- =========================================================================
- Date: Sat, 10 Sep 1994 17:47:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: oops RE:gopher site
-
- Oops kinda forgot 1 little detail the gophersite hehe
- gopher://comics.scs.unr.edu:8112/7%20?applescript
- ............KingShit
- =========================================================================
- Date: Sat, 10 Sep 1994 20:03:32 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Re: ScriptWizard 1.0.1x41 updater
-
- Is the updater to ScriptWizard available on AOL?
- =========================================================================
- Date: Sat, 10 Sep 1994 17:43:04 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: Timer items?????
-
- > Before I saw this I was going to ask if it was possible to name a file a
- >time and date, ie. (5:00pm 9/11/94), and have an application or a script
- >that would run in the background and scan the files, calling up a file
- >whenever it's name matches the time. This item in august digest question
- >sounds like it would do this. But...........
- > Nobody answered, does anybody know if this exists? It would be very
- >useful (at least to me), If anybody knows of it's existance or have any
- >knowledge of it, Or if you can think of another way to do this.
-
- First, you can't have a colon ":" in the file name. Not allowed.
- You could use something like "5.00pm 9/11/94".
-
- It would be easy to have a script run and repeatedly check the time and
- filenames, but this would tie up processor power and you wouldn't be able
- to do much else with your computer while it was running. If you use an
- idle..end idle handler with a idle time of, say, 1 minute, it frees up the
- processor for a minute between each checking process. This would be better.
-
-
- What's wrong with cron? This is exactly what cron was intended for. There
- are a couple different versions of Cron in net land, I use the one by Chris
- Johnson.
-
- -Dave
-
- -----------------------------------------------------------------------
- David Ray Dream Designs Music Composition
- daver@netcom.com PO Box 5631 Interactive Multimedia
- 510-527-9010 Berkeley CA 94705 Virtual Worlds
- =========================================================================
- Date: Sat, 10 Sep 1994 23:39:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: driver for print to disk?
-
- I have fax software that will autoprint incoming faxes. I would like to
- save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
- note when new files appear and then I can process them with other
- AppleScript applications.
-
- Anyone know of a printer driver that saves to disk as TIFF? Actually I
- suppose I could use any file format that is common and I could convert it
- to a format readable by OCR but I assume TIFF is probably best.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Sun, 11 Sep 1994 08:21:12 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Re: Timer items?????
-
- At first glance, of this post, I'd suggest that the poster get his hands on a
- copy of Danny Goodman's book, the Complete AppleScript Handbook. It has an
- example of how to do what you seem to be after.
- =========================================================================
- Date: Sun, 11 Sep 1994 08:21:33 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Accessing Repeating Fields in FileMaker Pro
-
- Is there a way to move between cells in repeating field repetitions using
- AppleScript calls?
-
- I am working on a script to facilitate the reorganization of data held in
- repeating fields in one record.
-
- The concept is this...
-
- [1] Import the data in the record from one file into another, identical
- file, as separate records.
-
- [2] Sort the records in the second data file.
-
- [3] Go to a layout in each data file that has just the repeating fields in
- it. In the original that has the one record in it with all the repetitions
- of the repeating fields in it and just the one record found.
-
- [4] Get data from the cells in the separated field file.
-
- [5] Set data to the cells in the continguous field file.
-
-
- Seems fairly simple.
-
- Here's the script...
-
- tell application "FileMaker Pro"
-
- set inCount to 1 -- cell we're dealing with in the contiguous field data
- file
- set cellCount to 1 -- cell we're dealing with in the separated field data
- file
-
- set listRecords to Document "Repeat Test Convert" -- Separated field data
- file
- set inRecords to Document "Repeat Test" -- Contiguous field data file
-
- set recordCount to (Count of Records of listRecords) -- Number of records in
- the separated field data file being dealt with
-
- activate -- to watch what's happening
- Show inRecords
-
- repeat with i from 1 to recordCount -- Identify the record in the separated
- field data file
-
- repeat with cellCount from 1 to 3 -- identify the cell in the separated
- field data file
- Get Data Cell cellCount of Record i of listRecords -- Get the data from
- the separated field data file
- Set Data Cell inCount of inRecords To result -- Set the data in the
- contiguous field data file cell
- set inCount to inCount + 1 -- increment to the next field in the contiguous
- field data file
- end repeat
- end repeat
-
- end tell
-
- The problem is that when I try to get to the second row/repetition of the
- repeating fields in the contiguous field data file I can't find the "object"
- that is the first cell of the second row/repetition.
-
- Is there a special way of addressing repeating fields that facilitates such a
- Get/Set Data call?
-
- If so, what is it?
- =========================================================================
- Date: Sun, 11 Sep 1994 08:21:42 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Accessing a Disconnected Server
-
- Where I am at, there is a nightly requirement to back up all the data files
- to a central server so that the Novell Administrator can save all the key
- files to tape.
-
- Occasionally, the connection to this server is disconnected after everyone
- goes home and before the backup is suppoesd to take place.
-
- I know how to check for whether the connection is there, "list disk".
-
- However, I don't know how to re-establish the connection, which includes a
- password, to save my FileMaker Pro data files.
-
- What is the call? If any. I'm using System 7.1 software.
- =========================================================================
- Date: Sun, 11 Sep 1994 07:04:00 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
- Subject: Re: Accessing a Disconnected Server
-
- [stuff deleted]
- >Occasionally, the connection to this server is disconnected after everyone
- >goes home and before the backup is suppoesd to take place.
- >
- >I know how to check for whether the connection is there, "list disk".
- >
- >However, I don't know how to re-establish the connection, which includes a
- >password, to save my FileMaker Pro data files.
- >
- >What is the call? If any. I'm using System 7.1 software.
-
- Anyone know if System 7.5 would do this with the PowerTalk tools? Seems
- like that's supposed to provide a universal interface with appletalk
- servers, with one password. You "log in" to PowerTalk, then you don't
- have to provide passwords for individual servers. Anyone out there
- tried this?
-
- todd
- =========================================================================
- Date: Sun, 11 Sep 1994 10:58:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript newbie question
-
- At 16:06 9/10/94 -0700, Phil Corchary wrote:
-
- >Question two ... I'm writing a script that uses Anarchie to ftp a file,
- > then copy it to an AppleShare server. I have two questions in regard to this.
- > First, how would you recommend changing the file type and creator of the
- > file?
-
- The Scriptable Finder (System 7.5, or $25 from APDA) allows you to change
- the "creator type" and "file type" properties of a file object. There are
- many Scripting Addition addons for the archaic Finder, but I no longer
- care, so can't point you to them.
-
- The second part of this is, I'm using the MountVol
- > Add-On to mount the fileserver - but how do I UNmount it? Or is there
- > a better way in general to do this? Maybe a way to copy the file w/o
- > mounting the server? P
-
-
- With Scriptable Finder, you use something like
-
- tell application Finder
- put away disk "whatever"
- end tell
-
- [But this should be avoided for local volumes.]
-
- With the archiac Finder, you should be able to do
- tell application Finder
- put away alias "HD:" items {alias "HD:"}
- end tell
-
- or something like that...check the Finder dictionary entry for the put away
- command...I would have to restart without the Finder Scripting Extension to
- check out the AppleScript syntax.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 11 Sep 1994 15:10:59 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Perry Smith <pedz@BGA.COM>
- Subject: Quicken
-
- Does anyone know if Quicken is "scritable"? I guess a more general
- question is what is a simple way to find out if a particular application is
- Apple Script Savy?
-
- Thanks,
-
- pedz
- pedz@bga.com
- =========================================================================
- Date: Sun, 11 Sep 1994 22:16:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Scripting the scriptable Finder
-
- 1) Does anyone have a handy list of all the OSAX from the "old" Finder that
- have become archaic with the scriptable finder? I've got so many OSAX with
- multiple commands in them that checking them all manually would take a long
- time. If no one's got a list, I'll put one together as I slog through the
- task, but I thought I'd save myself some time.
-
- 2) Is the Addison-Wesley book on Finder Scripting up-to-date? That is, was
- it written for the Scriptable Finder or for the old one?
-
- 3) Is Inside Macintosh: Inter-Application Communications (ugh!) the only
- place I can get information on calling Apple Events from within scripts?
- I'm thinking in particular of the Eudroa Notify Controller script, which
- informs Eudora to send a particular Apple Event to an application of your
- choice. On the same topic, I've tried using it with Eudora
- Announcer...whether I choose "Notification On" or "Off", I always get the
- error dialog, as if it paid no attention to me, though Eudora _does_ launch
- the Announcer when it check the mail, but the Announcer never seems to
- receive the "<<event CSOmeNot>>" call, and fails to procede. Nothing is
- ever read to me, and a trap "return "Hello"" that I threw into the
- announcer right after the handler is triggered never gets returned. Is
- there some way I can check to see if Eudora Announcer is, in fact,
- receiving a "CSOmeNot"? Has anyone else gotten this to work?
-
- 4) On a similar subject, I have learned a bit of a trick. If you have the
- French (or probably other) dialect installed, and you switch to French in
- the formatting menu, you can see the actual AppleEvent commands that are
- being sent by many of the OSAX. I guess some of the OSAXen translations
- aren't set, so AppleScript defaults to displaying the raw AE command.
-
- Cheers in advance,
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Sun, 11 Sep 1994 22:15:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: gaea mirror site
- In-Reply-To: Your message of "Sat, 10 Sep 94 17:21:51 +0700"
-
- Desmond Sin asked....
-
- >Is there a mirror site for gaea? Trying to access gaea through my SLIP
- >account from Hong Kong, it takes forever just to get a directory listing.
-
- Not to my knowledge.
-
- pf
- =========================================================================
- Date: Sun, 11 Sep 1994 22:24:39 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: ScriptWizard 1.0.1x41 updater
- In-Reply-To: Your message of "Sat, 10 Sep 94 20:03:32 EDT"
-
- Charles Pelto asked...
-
- >Is the updater to ScriptWizard available on AOL?
-
- Yes, I think it is in the MacUtilities section.
-
- pf
- =========================================================================
- Date: Mon, 12 Sep 1994 12:28:45 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: oops RE:gopher site
-
- >Oops kinda forgot 1 little detail the gophersite hehe
- >gopher://comics.scs.unr.edu:8112/7%20?applescript
- >.............KingShit
-
- I got a LONG listing, including the AppleScript 1.1 extension - I thought
- it was commercial software??
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Sun, 11 Sep 1994 08:24:08 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Central Postmaster <SSW.POSTMSTR@TSOD.LMIG.COM>
- Subject: Mail Delivery Status
-
- ***** Error in Mail Delivery *****
-
- ROUTING ERROR
-
- Recipients:
-
- MSMAIL.MGR_SSW1@TSOD.LMIG.COM
- =========================================================================
- Date: Sun, 11 Sep 1994 21:21:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Scripting the scriptable Finder
-
- >2) Is the Addison-Wesley book on Finder Scripting up-to-date? That is, was
- >it written for the Scriptable Finder or for the old one?
-
- The "AppleScript Finder Guide English Dialect" is intended to be up to
- date, and to describe the Scriptable Finder as it exists today--that is,
- the script
- tell application "Finder"
- version
- end tell
-
- returns "1.2"
-
- which is the version of the Finder Scripting Extension (with a note in the
- book that in subsequent versions, the rather more useful Finder version
- will be returned instead). There are a couple of other instances in which
- futures are mentioned (such as the fact that "Finder" is not in the list of
- running processes).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sun, 11 Sep 1994 23:30:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
- Subject: Re: Accessing a Disconnected Server
-
- >Anyone know if System 7.5 would do this with the PowerTalk tools? Seems
- >like that's supposed to provide a universal interface with appletalk
- >servers, with one password. You "log in" to PowerTalk, then you don't
- >have to provide passwords for individual servers. Anyone out there
- >tried this?
- >
- >todd
-
- Sure, the feature works fine. In fact it is a feature of PowerTalk that
- pre-dates System 7.5 so you aren't dependent on the new system for this.
- You just need to install PowerTalk and add the Novell server to your key
- chain. Of course the down side is that eventually you'll forget your
- various passwords.
-
- -------------------------------------------------------------
- Steve Bryan Internet: sbryan@maroon.tc.umn.edu
- Sexton Software CompuServe: 76545,527
- Minneapolis, MN 55415 Fax: (612) 929-1799
- =========================================================================
- Date: Mon, 12 Sep 1994 00:26:02 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: Scripting the scriptable Finder
-
- >I've tried using it with Eudora
- >Announcer...whether I choose "Notification On" or "Off", I always get the
- >error dialog, as if it paid no attention to me, though Eudora _does_ launch
- >the Announcer when it check the mail, but the Announcer never seems to
- >receive the "<<event CSOmeNot>>" call, and fails to procede. Nothing is
- >ever read to me, and a trap "return "Hello"" that I threw into the
- >announcer right after the handler is triggered never gets returned. Is
- >there some way I can check to see if Eudora Announcer is, in fact,
- >receiving a "CSOmeNot"? Has anyone else gotten this to work?
-
- I get it to work, but can't get Eudora not to notify the announcer, I've
- added 'please notify ""' in a on quit handler to the announcer but still
- Eudora notifys the Announcer.
- I'm a bit confused about the difference between the Eudora command "please
- notify" and the notify osax?? could somebody fill me in.
-
- A little trick I put to use this weekend was to use the Script Tools
- "speech" osax for debugging. Instead of dialog boxes the script tells me
- what it is doing (even things like telling me when one subroutine ends
- etc). I found it very useful to follow what was going on hidden from view!
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Mon, 12 Sep 1994 07:25:15 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Couple scripting questions...
-
- >Sorry for the vague subject, but I couldn't come up with anything better...
- >
- >1) is it possible to have a variable resolve to a record label?
- >
- >This won't work:
- >
- >set Fred to "Wilma"
- >set Barny to {Fred:85}
- >Barny
- >
- >Result: {Fred:85}
-
- You can use our new friend "run script"
- set Fred to "Wilma"
- set Barny to run script "{" & Fred & ":85}"
- Barny
-
- Result: {wilma:85}
-
- >2) along the same lines, is there a way to 'compound' variable. Again as in:
-
- No, you should use a list for this.
-
- set variableList to {}
- set aList to {1,2,3}
- repeat with i from 1 to (count of aList)
- set end of variableList to {i, i + 10}
- end repeat
-
- variableList
-
- Result: {{1, 11}, {2, 12}, {3, 13}}
-
- >3) The scriptable finder refuses to open a file more than once even if it
- I'm not sure what you mean here... Can you post or send a code fragment?
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Mon, 12 Sep 1994 06:22:45 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andrew T. Johnston" <atjohnst@APPLE.COM>
- Subject: RE>>Accessing a Disconnected Server
-
- Hi,
-
- >[stuff deleted]
- >>Occasionally, the connection to this server is disconnected after everyone
- >>goes home and before the backup is suppoesd to take place.
- >>
- >>I know how to check for whether the connection is there, "list disk".
- >>
- >>However, I don't know how to re-establish the connection, which includes a
- >>password, to save my FileMaker Pro data files.
- >>
- >>What is the call? If any. I'm using System 7.1 software.
-
- >Anyone know if System 7.5 would do this with the PowerTalk tools?
- [snip]
- >Anyone out there tried this?
-
- Yes, indeed. I've been doing this since PowerTalk was introduced in System
- 7 Pro.
-
- Sign on to the remote volume in question. Make an alias. Unmount the volume.
- Open the alias file, and answer "Yes" to the dialog that asks about adding
- the service to your key chain. Keep the alias file in a known local folder.
- With the scriptable Finder, the following script will do what you ask, as
- long as your PowerTalk key chain is unlocked.
-
- property remoteVolumeAlias : alias "Local HD:Known Folder:Remote Volume alias"
-
- tell application "Finder" -- the scriptable one
- get original item of alias file remoteVolumeAlias
- end tell
-
-
- Hopefully helpful,
- Andrew
- ------------------
- Andrew T. Johnston
- Apple Canada, Inc.
- atjohnst@apple.com
- =========================================================================
- Date: Mon, 12 Sep 1994 06:55:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kirk Stork <kastork@NPS.NAVY.MIL>
- Subject: Re: oops RE:gopher site
-
- >>Oops kinda forgot 1 little detail the gophersite hehe
- >>gopher://comics.scs.unr.edu:8112/7%20?applescript
- >>.............KingShit
- >
- >I got a LONG listing, including the AppleScript 1.1 extension - I thought
- >it was commercial software??
- >
-
- Anyone else getting a connection refused at this site? I've tried
- different times, Gopher and MacWeb...no luck.
-
- Kirk Stork
- kastork@nps.navy.mil
- =========================================================================
- Date: Fri, 9 Sep 1994 18:21:19 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Judith Kertisz SUCHARD <suchard@CNAM.FR>
- Subject: Re: learning apple script
-
- Tao was the first commercially available book.
- And I was happy to have baught it.
- The begining was very clear: I loved it.
- After that, became hacking, wich is ok, but
- one can do a lot 'normal' things with AS,
- without hacking first.
-
- I would like to buy the second too, but:
- what is new in it?
-
- I have all books that I found on HyperCard too.
- You always learn something, from each.
- The problem is it ok for begining or not, that
- is difficult to say to someone who had already
- read all apple's literature before...
-
- Anyone writing something explaining about applescript
- objects? I have lots of exemples if needed.
- =========================================================================
- Date: Mon, 12 Sep 1994 09:08:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: oops RE:gopher site
- In-Reply-To: Your message of "Mon, 12 Sep 94 12:28:45 +1100"
-
- Owen Watson commented.....
- >>Oops kinda forgot 1 little detail the gophersite hehe
- >>gopher://comics.scs.unr.edu:8112/7%20?applescript
- >
- >I got a LONG listing, including the AppleScript 1.1 extension - I thought
- >it was commercial software??
-
- It is, but a quick perusal of the listing will show you that it contains a
- number of MacHTTP scripts. At one point, MacHTTP's author was talking about
- licensing AppleScript for distribution with his program. That may have
- happened.
-
- There are a lot of interesting tidbits on this gopher. I can't tell if the
- discussions are from the MacHTTP mailing list or AppleLink.
-
- pf
- =========================================================================
- Date: Mon, 12 Sep 1994 11:14:25 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: Accessing Repeating Fields in FileMaker Pro
-
- >The problem is that when I try to get to the second row/repetition of the
- >repeating fields in the contiguous field data file I can't find the "object"
- >that is the first cell of the second row/repetition.
- >
- >Is there a special way of addressing repeating fields that facilitates such a
- >Get/Set Data call?
- >
- >If so, what is it?
-
- Filemaker seems to treat repeating fields as one object. If you 'Get Cell
- "X"' and cell x is a repeating field, filemaker will return all the values
- of the repeating fields to applescript as a list. This is why applescript
- is a saviour for dealing with repeating fields. Since filemaker has few
- mechanisms for accessing repeating field data, applescript comes to the
- rescue by allowing you to grab the contents of a repeating field,
- manipulate it and stuff it back in (or into another database).
- Caveats:
-
- 1. Older versions of Filemaker Pro 2.1 would repeat values stuffed into
- repeating fields via applescript ie. repeating field with ten iteration -
- you stuff in two values - those values repeat across all 10 iterations.
- Fix: stuff your applescript list with null "" string for all null values.
-
- 2. I've had ongoing crashing problems stuffing information into repeating
- fields. I have tried several computers and different version of FM and get
- similar problems. I have notified Claris but have not heard back from
- them.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Mon, 12 Sep 1994 14:58:26 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Forms & Eudora
-
- Has anyone done any forms work that involves linking Eudora with a
- database? Or is the feeling that Eudora is not suitable?
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Mon, 12 Sep 1994 09:55:04 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Re: oops RE:gopher site
-
- >Anyone else getting a connection refused at this site? I've tried
- >different times, Gopher and MacWeb...no luck.
- >
- > Kirk Stork
- >kastork@nps.navy.mil
-
-
- I cant get connected either.
-
-
- Frank C.
- R&E
- =========================================================================
- Date: Mon, 12 Sep 1994 09:59:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: Couple scripting questions...
-
- >>3) The scriptable finder refuses to open a file more than once even if it
- >I'm not sure what you mean here... Can you post or send a code fragment?
-
- Well I'm not sure what I was doing, I think my problem was:
-
- tell application "Finder"
- open file ((choose file with prompt "choose") as string)
- end tell
-
- which doesn't work and when run twice gets the "already open error"
-
- the solution was to use the syntax:
-
- open file (choose file with prompt "choose")
-
- no problems,
-
-
- Thanks for the help with the other Q's
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Mon, 12 Sep 1994 10:00:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Docker: a Script for Duo/DuoDock users
-
- I spent much of this weekend writing my first script of any real use (just
- finished 'the handbook', proof that AS has power for the novice).
-
- Docker keeps track of icons for the builtin screen and a dock screen.
- I just put it in the Inocming directory on gaea and it should be in the
- scripts directory sometime soon (Thanks Fred!).
- "Docker.as.sit.hqx"
-
- I would love people to give it a try before I make a general
- announcement to the powerbook Newsgroup. As a new scripter I tried to make
- it readable to other new scriptors (because I learned so much by reading
- other's scripts). More detailed info can be found in the README, below is
- the introduction:
-
-
- What is the Docker script?
-
- Like many people I have grown to love the Duo/DuoDock system. A full
- fledged desktop combined with one of the most portable portables. Also
- like most Mac users I have a bit more than the "Trash" and disk(s) on my
- desktop ;-) but the Duo does not recognize what the dimensions of the
- screen are when in or out of a dock. The excellent shareware program
- "Dockernaut" by Steve Martin (martin@metronet.com) can control much of the
- behavior of Duos by keeping separate preference files for each docking
- state, but the "Finder" preferences only hold the location of the "Trash"
- icon, everything else gets shoved around by the changing screen sizes.
- That's why I wrote this little script. Docker keeps track of your favorite
- icon placement for two different screen sizes.
-
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Mon, 12 Sep 1994 13:20:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Docker: a Script for Duo/DuoDock users
- In-Reply-To: Your message of "Mon, 12 Sep 94 10:00:05 -0900"
-
- >Docker keeps track of icons for the builtin screen and a dock screen.
- >I just put it in the Inocming directory on gaea and it should be in the
- >scripts directory sometime soon (Thanks Fred!).
- >"Docker.as.sit.hqx"
-
- You'll find Preston's script at
-
- ftp://gaea.kgs.ukans.edu/applescript/scripts/Docker.as.sit.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Mon, 12 Sep 1994 09:00:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Forms & Eudora
-
- >Has anyone done any forms work that involves linking Eudora with a
- >database? Or is the feeling that Eudora is not suitable?
-
- I've been building a mailed forms processor to database kinda thing and
- I've found Eudora to be the only mail package that seems to work as
- advertised. So, I'd say that Eudora is suited for this kind of application.
-
- Mine is a HyperCard front end, driving Eudora, talking to a Butler DAL
- database via the DataScript translator (AppleScript to DAL). Seems to work
- quite well.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Mon, 12 Sep 1994 12:34:10 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Glenn Massarano <gmass@CCNET.COM>
- Subject: Re: Accessing a Disconnected Server
- In-Reply-To: <199409121324.GAA24105@ccnet.ccnet.com>
-
- > Where I am at, there is a nightly requirement to back up all the data files
- > to a central server so that the Novell Administrator can save all the key
- > files to tape.
- >
- > Occasionally, the connection to this server is disconnected after everyone
- > goes home and before the backup is suppoesd to take place.
- >
- > I know how to check for whether the connection is there, "list disk".
- > > However, I don't know how to re-establish the connection, which includes a
- > password, to save my FileMaker Pro data files.
- >
- > What is the call? If any. I'm using System 7.1 software.
- >
-
- i believe there is a "MountVol" scripting addition that will do this. i
- have been using this to mount a server volume with a password over appletalk
- and system 7.1.
-
- -------------------
- glenn massarano
- gmass@ccnet.com
- =========================================================================
- Date: Tue, 13 Sep 1994 09:05:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Scripting the scriptable Finder
-
- "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
-
- >tell application "Finder"
- > version
- >end tell
- >
- >returns "1.2"
-
- My copy returns "1.1".
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 12 Sep 1994 21:51:38 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: New version of Easy View on gaea
-
- By now the version of Easy View on gaea should have been updated from v2.44
- to v2.50. Easy View by Akif Eyler is a setext reader for tidbits, info-mac
- digest etc and I find it very useful.
-
- This new version makes the following changes, taken from user manual:
-
- >EV 2.5 August 94
- >* An extension menu is added for using external code segments
- > (Compatible with BBEdit)
- >* Font and Size menus are made hierarchical
- >* Cancel key does not crash after "Do you want to save?" dialog
-
- The new versions include support for the speech manager, word count and
- fetching an URL. Keyboard shortcuts can be added to any extension.
-
- >This program can be distributed freely on any medium, for non-commercial
- >>purposes, along with the enclosed documents. It may not be sold or
- >exchanged >for profit.
-
- You should be able to find the new version at:
- ftp://gaea.kgs.ukans.edu:/applescript/addons/easy-view-250.hqx
-
- Happy scripting, Neil.
-
- Neil Christie, 15 |Voice/Fax: 0131 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Tue, 13 Sep 1994 09:35:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Couple scripting questions...
-
- Preston Holmes <pholmes@UCSD.EDU> writes:
-
- >tell application "Finder"
- > open file ((choose file with prompt "choose") as string)
- >end tell
- >
- >which doesn't work and when run twice gets the "already open error"
-
- I copied and pasted that script into a Script Editor window, and it worked
- just fine. I chose an MPW Shell text file, and it opened in MPW.
-
- Thought: do you recall exactly which application gave you the "already open"
- error? My hunch is, it's not the Finder, but the application that was
- trying to open the file you chose.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 12 Sep 1994 22:15:05 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: New version of Anarchie on gaea
-
- I have put Anarchie 1.3.1 into incoming on gaea so it should turn up in
- scriptableapps soon. It adds a guide file for system 7.5 and a few other
- bits and pieces. Full docs are included. It is a binhexed stuff-it archive.
-
- Anarchie is a full scriptable and recordable ftp program. It costs $10 and
- is shareware and by Peter N Lewis.
-
- I downloaded it from:
- ftp://src.doc.ic.ac.uk:/computing/systems/mac/umich/util/comm/anarchie1.31.s
- it.hqx.gz
-
- Hope you like it, Neil.
-
- Neil Christie, 15 |Voice/Fax: 0131 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Mon, 12 Sep 1994 17:28:52 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Re: Script examples for BBEdit 3.0?
-
- Friends:
-
- Here is my SECOND BBEdit AppleScript, and this one actually does
- something useful :-). Regards to the kind assistance of Sean Elfstrom
- <selfstro@CS.Trinity.Edu>, whose "Fix Headers in AOL" script I boldly
- plagerized. This is an applet which opens one or more MACSCRIPT Digest,
- finds the date of the first entry, then copies that date line to the first
- line of the file. This is useful when viewing the Digest using EasyView,
- which doesn't show the header text before the first date (by the way,
- EasyView would be a strong candidate for scripting). It's pretty cool that
- it even works:
-
- -----(included script)-----
-
- on open (fileList)
- repeat with sourceFile in fileList
- tell application "BBEdit 3.0"
- activate
- open sourceFile as alias
- tell front window
- Find "Date: "
- Select Current Line
- set theHeaders to Selected Text
- Go To Line 0
- Insert Text "--------------------" & return
- Insert Text theHeaders
- Close with saving
- end tell
- end tell
- end repeat
- tell application "BBEdit 3.0" to quit
- end open
-
- Some questions still plague me, though. For instance, BBEdit has two
- commands, "Select Current Line" and "Select Full Lines" -- are they
- identical? Further, it seems impossible to select more than one line at a
- time, unless they contain contiguous lines of text, wherein it is
- considered a paragraph ("Select Paragraph"). What gives?
-
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Mon, 12 Sep 1994 18:21:30 -0300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Getting FileMaker Pro to find....
-
- Sorry for the mega-newbie question, but.....
-
-
- How the heck do I get FileMaker Pro to find things? I want to do something like
-
- set foo to field "bar" where field "foo" = "newbie"
-
-
- and the above don't work.......also, how can I tell if I didnt find
- anything, or if I found more than one match?
-
-
-
-
- thanx in advance
-
- - bill
-
-
- | Bill Hutten - bhutten@fox.nstn.ns.ca
- | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6 (902) 453 2482
- | "Hard to love, when you're bracing for impact." - Martin Amis
- =========================================================================
- Date: Mon, 12 Sep 1994 17:31:00 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "For every action there is an equal and opposite reaction."
- <yosus@MCS.COM>
- Subject: Re: oops RE:gopher site
-
- >>>Oops kinda forgot 1 little detail the gophersite hehe
- >>>gopher://comics.scs.unr.edu:8112/7%20?applescript
- >>>.............KingShit
-
-
- >Anyone else getting a connection refused at this site? I've tried
- >different times, Gopher and MacWeb...no luck.
- Kirk Stork
- kastork@nps.navy.mil
-
-
- I think you can still sneak into this site by using a veronica gopher
- search @ the url gopher://comics.scs.unr.edu:8112/7%20 and typing in
- "applescript".
- There is also gopher://userserve.ucsd.edu/11ftp%3aPublic%3aAppleScript%3a
- so there............................KingShit
- =========================================================================
- Date: Mon, 12 Sep 1994 18:54:07 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Re: Accessing Repeating Fields in FileMaker Pro
-
- I pursued the advice offered about dealing with repeating fields in FileMaker
- Pro...
-
- ....and yes they are treated like LISTs.
-
- However, as with the caveats, there are some problems....
-
-
- Even the most recent version of FMP, 2.1v3, suffers from the problem of
- repetative implanting. Alex!!!! HELP!!!!!!!!!
-
- Haven't encountered the crashing problem mentioned just yet.
-
- More to follow....
- =========================================================================
- Date: Mon, 12 Sep 1994 15:53:52 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Data to Mail Question***
-
- Can anyone help with this question someone has asked me?
-
- Thanks
- ============
- My company used to have its telephone extension list in Microsoft Word and
- Excel formats (it was 4 seperate documents), then would QuickMail them to our
- users and they would have to print it out. I felt this was both financially
- and time wasteful, so I worked up a solution... I started my first
- AppleScript. I am using FileMaker Pro (2.1v3), AppleScript (1.1), Scriptable
- Text Editor (1.1), ResEdit 2.1.3 and Display DA 2.1.
-
- I have FileMaker do all the text formatting then I have a script that exports
- final info to a text file, that's when AppleScript takes over and formats the
- font and size and moves the text files into stationary pad files.
-
- I manually have to copy and paste the text into Display DA using ResEdit
- 2.1.3. I would like to automate this too or find some other solution.
- Anysuggestions?
-
- All of our Macs are running System 7.0.1, 7.1, or 7.1.1 with the AppleScript
- components to run (not create) scripts. I do not want to have to purchase
- any programs (on the user end) to do this.
- =========================================================================
- Date: Mon, 12 Sep 1994 15:55:00 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: copy files for backup
-
- Any suggestions??
-
- Thanks
- ======
- using finderLib it was
-
- tell finderLib
-
- copyFiles "MyServer:Desktop Folder:" to alias
- "MainServer:GROUPS:SHARED:Desktop Folder:"
- end tell
-
-
- You see, if the MainServer, selected via EtherNet isn't on
- MyServer/computer's desktop, I'm dead in the water. The backup, scheduled
- for between 7 pm and 12 am, when the Novell Administrator does their backup
- to tape for off-site storage, I'm gone and the backup has failed.
-
- How do I check if the access is open and if not, how do I open it. Note: It
- requires a password.
- =========================================================================
- Date: Mon, 12 Sep 1994 15:56:05 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Re: RE>>Accessing a Disconnected Server
-
- I have a similar need to transfer files to a remote server. If the server is
- on the desktop, using an alias of the server works fine. However, if the
- server is not on a desktop, a prompt appears requiring the password. Is there
- any way to provide the password with AppleScript?
-
- Thanks,
-
- -MJL
- =========================================================================
- Date: Mon, 12 Sep 1994 22:17:41 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Getting FileMaker Pro to find....
- In-Reply-To: <no.id> from "Bill Hutten" at Sep 12, 94 06:21:30 pm
-
- --Bill Hutten wrote:
- >
- >How the heck do I get FileMaker Pro to find things? I want to do something like
- >
- >set foo to field "bar" where field "foo" = "newbie"
-
- Open the FM Pro dictionary with the Script Editor and take a look at
- the Show command. This is the one that performs a find. It's intent is
- to "show" all records matching the request you give it. For instance,
- you particular request would look something like this:
-
- Show every record (whose cell "foo" is equal to "newbie")
-
- -Hades
- =========================================================================
- Date: Tue, 13 Sep 1994 17:33:29 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Search & replace
-
- I'm trying to do a search & replace on an AS variable. Is there an osax
- that will do it, or do I have to code it up using offsets (probably slower,
- as well).
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Tue, 13 Sep 1994 00:06:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: oops RE:gopher site
-
- >There is also gopher://userserve.ucsd.edu/11ftp%3aPublic%3aAppleScript%3a
- > so there............................KingShit
-
- Since I'm from UCSD I would just want people to know the following from
- their README:
-
- "Users accessing the server via internet Gopher are asked to be gentle
- with our little mac here. This is not a major interenet FTP site, but
- rather a system for the UCSD community."
-
- I'm sure this doesn't matter for the applescript stuff but think twice
- before batch downloading all the picture or sound files ;-).
-
- PS I have no connection with the above site.
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 13 Sep 1994 00:10:28 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Tip of the Week - Paste Reference
-
- I hadn't noticed the Script Editor 1.1 feature "Paste Reference" before
- today. I don't really use the Edit menu much anymore, so I just hadn't
- noticed it. So, when someone asked me about it, I had an "Ah ha!"
- experience. I had seen some time ago (probably while developing my
- "clipboard info" osax) that the Scriptable Finder puts an object reference
- "obj " data type on the clipboard when you copy stuff. This is in addition
- to the TEXT name data that you normally use. So, since your paste command
- uses the name of the item in your script, you need a paste reference
- command to get the object specifier. There doesn't appear to be a command
- key for this, so I QuicKeyed Control-V to it.
-
- Now you can click on a file in the Scriptable Finder, copy it, switch to
- the Script Editor and paste an object specifier referencing it into your
- script. Pretty darn simple.
-
- The only trick I see is that it helps to have already compiled something
- with the Finder's dictionary already. Otherwise you get the old << >>
- notation.
-
- I'll be implementing this in my programs from now on. I just wish I'd
- noticed it earlier.
-
- Jon
- =========================================================================
- Date: Tue, 13 Sep 1994 00:26:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Error in Docker requirements
-
- Not that most of you couldn't figure it out but want to clarify a mistake:
-
- Jon's commands, while excellent, is not required for Docker. While Mark
- Alldritt's List Screens (from Script Tools) is.
-
- This blunder will be fixed in the next version (which will also try to fix
- other script bugs).
-
- sorry...
-
- Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 13 Sep 1994 08:16:08 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Lee Hoong <lhoong@UNIX.CC.EMORY.EDU>
- Subject: Re: Accessing Repeating Fields in FileMaker Pro
-
- >I pursued the advice offered about dealing with repeating fields in FileMaker
- >Pro...
- >
- >....and yes they are treated like LISTs.
- >
- >However, as with the caveats, there are some problems....
- >
- >
- >Even the most recent version of FMP, 2.1v3, suffers from the problem of
- >repetative implanting. Alex!!!! HELP!!!!!!!!!
- >
- >Haven't encountered the crashing problem mentioned just yet.
- >
- >More to follow....
-
- Charles,
-
- Repeating field values in FMP are separated by vertical tab (ASCII 29)
- characters. Your script will have to set/get the individual values with
- this in mind. I usually like to take advantage of AppleScript's text item
- delimiter property to help manipulate repeating field values. For example,
-
- tell application "FileMaker Pro"
- copy the Current Record of Database 1 to CurrRec
- copy cellValue of Cell "MyRepeat" to RepeatValues
- set item 2 of RepeatValues to "2"
- copy AppleScript's text item delimiters to OldDelim
- set AppleScript's text item delimiters to ASCII character 29
- copy RepeatValues as string to NewValues
- set AppleScript's text item delimiters to OldDelim
- set cellValue of Cell "MyRepeat" of CurrRec to NewValues
- end tell
-
- In the above script, if the field "MyRepeat" initially contains 3 repeating
- values (one, two, three), the second repeat will be changed from "two" to
- "2."
-
- IMPORTANT NOTE: Be careful when changing AppleScript's text item
- delimiters--this will affedt all your scripts globally. I always save the
- old/default delimiters to a variable then restore when the manipulations
- are done. To be even safer, you can embed the change within a try-on error
- routine so that the text item delimiters are restored when something goes
- wrong.
-
- Lee.
-
- Lee Hoong
- Dept. of Chemistry
- Emory University
- Atlanta, GA 30322
- Internet: lhoong@unix.cc.emory.edu
- AOL: LHOONG
-
- Opinions expressed are solely mine; I do not represent Emory University.
- =========================================================================
- Date: Tue, 13 Sep 1994 08:53:14 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Abner Dumoff <abbyd@FREENET.SCRI.FSU.EDU>
- Subject: Re: Quicken
- In-Reply-To: <199409112004.AA01846@freenet3.scri.fsu.edu>
-
- On Sun, 11 Sep 1994, Perry Smith wrote:
-
- > Does anyone know if Quicken is "scritable"? I guess a more general
- > question is what is a simple way to find out if a particular application is
- > Apple Script Savy?
- >
- > Thanks,
-
- Try to open the dictionary of the program in question, from the Script
- Editor.
-
- -Abby
- =========================================================================
- Date: Tue, 13 Sep 1994 09:14:49 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ScriptDebugger
-
- >John,
- >
- >I'm just curious, what do you think about ScriptDebugger? Have you had much
- >time to play with it? Found anything really goofy?
-
- Hi, Fred...
-
- I (US) mailed off my NDA to Mark...nothing else happened (I was assuming
- it wasn't ready yet). So I don't know.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 13 Sep 1994 12:26:09 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: RE>>Accessing a Disconnected Server
-
- >However, if the server is not on a desktop, a prompt appears
- >requiring the password. Is there any way to provide the
- > password with AppleScript?
-
- QuicKeys 3.0 has an extension that passes the password to the remote Mac. It
- means creating a small script object containing the QK script, and either
- loading the script object at runtime, or storing it as a property.
-
- Danny Goodman
- =========================================================================
- Date: Tue, 13 Sep 1994 11:54:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Todd Main <tmain@FSRAMPO.SPS.MOT.COM>
- Subject: Apple ftp site
-
- Is there an Apple corporate ftp site, with systems extras like
- printer drivers, etc.? Seems like there used to be an
- "ftp.apple.com", but I can't connect to that now.
-
- Regards,
- Todd Main
- =========================================================================
- Date: Tue, 13 Sep 1994 13:26:56 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Apple ftp site
- In-Reply-To: <no.id> from "Todd Main" at Sep 13, 94 11:54:21 am
-
- --Todd Main wrote:
- >
- >Is there an Apple corporate ftp site, with systems extras like
- >printer drivers, etc.? Seems like there used to be an
- >"ftp.apple.com", but I can't connect to that now.
-
- If you are having trouble connecting to ftp.apple.com you should try
- ftp.austin.apple.com or ftp.support.apple.com. For the WWW-savvy people
- around here take a look at http://www.apple.com or
- http:///www.info.apple.com.
-
- -Hades
- =========================================================================
- Date: Tue, 13 Sep 1994 13:29:29 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Data <czen@COLUMBIA.EDU>
- Subject: Re: Apple ftp site
- In-Reply-To: <199409131702.AA07911@mailhub.cc.columbia.edu>
-
- > Is there an Apple corporate ftp site, with systems extras like
- > printer drivers, etc.? Seems like there used to be an
- > "ftp.apple.com", but I can't connect to that now.
-
- try ftp.support.apple.com
-
- /data <czen@columbia.edu>
- Matrix 29.12 Op and Control Strip Modules Archive Maintainer
- --------------------------------------------------------------------------
- voice 212-853-7882 Matrix 29.12 now fully operational
- --------------------------------------------------------------------------
- Love your enemies: they'll go crazy trying to figure out what you're up to.
- =========================================================================
- Date: Tue, 13 Sep 1994 10:49:14 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brad Schrick <brad@APE.COM>
- Subject: Re: Apple ftp site
-
- >Is there an Apple corporate ftp site, with systems extras like
- >printer drivers, etc.? Seems like there used to be an
- >"ftp.apple.com", but I can't connect to that now.
-
- -- There are two WWW sites for Apple now, at least two I should say, at
-
- www.apple.com and www.info.apple.com
-
- one second...
-
- I couldn't get to ftp.apple.com either, but it's listed below... I couldn't
- get to www.apple.com, but I could get to www.info.apple.com, and they
- mention ftp.info.apple.com as the ftp site. Here is their list of sites;
- if you need the URLs for anything listed but don't have Web access, let me
- know and I'll try to make time to get them.
-
- Apple Related Web Pages
-
- This page details specific support information from each of the product
- groups and lists additional WWW sites both inside and external to Apple
- Computer, Inc.
-
- ____________________________________________________________________________
- ___________________________
- Apple Product Support Team Home Pages
-
- * Power Macintosh Support
-
- * PowerBook Support
-
- * Quadra/Centris Support
-
- * Printer/Peripheral Support
-
- * Performa Support
-
- * PIE/Newton Support
-
- * Networking and Communication Support
-
- * K-12 Education Support
-
- * System Software Support
-
- * Other Apple Software
-
-
-
- ____________________________________________________________________________
- ___________________________
-
- Apple Developer Support and Information
- * Developer Support Programs A comprehensive listing of developer programs
- and how they might fit your needs.
-
- * Apple Developer University The latest technical instruction for Macintosh
- developers.
-
- ____________________________________________________________________________
- ___________________________
-
- The Information Alley Newsmagazine
- * The Information Alley Apple's premier technical newsmagazine.
-
- ____________________________________________________________________________
- ___________________________
- Apple Fax Technical Support Catalog
-
- * Technical Quick Fixes and Documentation These are the same files that are
- available on the FaxBack system at 800-SOS-APPL.
- ____________________________________________________________________________
- ___________________________
- QuickDraw GX Home Page
-
- * QuickDraw GX Apple Computer's new imaging model for the Macintosh and
- Power Macintosh computers.
-
- ____________________________________________________________________________
- ___________________________
- Apple e-Mail Mailing Lists
-
- * Apple List Processor Join any of four official Apple e-mail mailing lists.
-
- ____________________________________________________________________________
- ___________________________
- Additional Apple Internet Sites
-
- * www.apple.com The Apple Computer WWW Server
-
- * info.hed.apple.com The Apple Higher Ed Gopher Server at University of
- Minnisota (the Fighting Gophers)
-
- * ftp.info.apple.com
-
- * ftp.apple.com
-
- * aux.support.apple.com An Apple UNIX related site
-
- * spinaltap.micro.umn.edu Tech Info Library via Gopher
-
-
- ____________________________________________________________________________
- ___________________________
- Apple Related Home pages that are not Sponsored by Apple Computer, Inc.
-
- * Farallon Web Server
-
- * Global Village
-
- * MacWeb from EI Net
-
- * PowerPC News
-
- * Macintosh Internet resources from the University of Washington
-
- * Arizona Macintosh Users Group
-
- * Newton info from the University of Houston.
-
- * Microlib Macintosh Archive from The University of Texas
-
-
- ____________________________________________________________________________
- ___________________________
-
- Return to Apple Home Page
-
- web.pages1.html/Apple Computer Inc./www@spock.austin.apple.com
-
- ___________________________________________________________________________
- Brad Schrick or try
- Engineering Software Concepts, Inc. Embry-Riddle Aeronautical University
- 236 Hamilton Avenue / PO Box 66 600 S Clyde Morris Blvd
- Palo Alto, California 94301 Daytona Beach, FL 32114
- (415) 325 4321 (messages) (904) 226 6200
- brad@ape.com schrickb@db.erau.edu
- esc@isl.stanford.edu http://macwww.db.erau.edu/
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 13 Sep 1994 11:04:54 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Hopkins <mhopkins@NETCOM.COM>
- Subject: New ScriptWizard patcher
-
- We have posted another patcher onto gaea for downloading. Hopefully this
- one isn't corrupted. This constitutes the final release of the updater and
- revs. ScriptWizard to v 1.0.1. As always, we welcome all your bug reports,
- comments and criticisms so that we can keep improving ScriptWizard.
-
- The file name is: SCW101x41.hqx
-
- Best Regards,
-
- MGH
-
- Mike Hopkins | PH: (408)366-8921
- Full Moon Software, Inc. | FAX: (408)252-2378
- P.O. Box 700237 | CIS: 70713,2664
- San Jose, CA 95170 | AOL: MHopkins
- =========================================================================
- Date: Tue, 13 Sep 1994 11:07:38 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bob Beamesderfer <beamesde@NEWS.LATIMES.COM>
-
- SUBSCRIBE, Bob Beamesderfer
- =========================================================================
- Date: Tue, 13 Sep 1994 20:56:38 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Holger Skok <skok@ITWDS1.ENERGIETECHNIK.UNI-STUTTGART.DE>
- Subject: Scripting Stuffit Lite?
-
- Hi everyone,
-
- My first try to actually submit something:
-
- I'm trying to use Applescript 1.0 to update a Stuffit Archive created
- by StuffitLite. I tried several commands contained in the dictionary
- of StuffitLite, but many of them don't seem to work. I could select all,
- but I could neither select by name, nor by number. I couldn't get the
- filecount out of the archive...
-
- In short: I'm at a loss.
-
- Is there any documentation available for Scripting Stuffit Lite?
- Are there any sample scripts using the more complex commands of Stuffit
- Lite (I've got the simple drag-and-drop scripts to create an archive or
- to add to an existing archive, but they don'T use many of StuffitLite's
- commands).
-
- Thanks in advance for any pointer or hints...
- HSK
- =========================================================================
- Date: Tue, 13 Sep 1994 13:57:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: New ScriptWizard patcher
- In-Reply-To: Your message of "Tue, 13 Sep 94 11:04:54 -0900"
-
- >The file name is: SCW101x41.hqx
-
- And you'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/updates/SCW101x41.hqx
- =========================================================================
- Date: Tue, 13 Sep 1994 15:54:25 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Howard White <hwhite@CCS.NEU.EDU>
- Subject: Archive of AppleScripts
-
- Hello Scripters
-
- Is these a public domain archive of AppleScripts out there?
-
-
- Howard White, PC Tech. Coor.
- Northeastern University
- Office of VP Information Services
- 360 Huntington Ave
- 275 Richards Hall
- Boston, MA 02115
-
- Office Phone:617-373-4275
- Portable Phone:617-840-3881
- FAX: 617-373-2054
- http://h-white.acs.neu.edu/
- =========================================================================
- Date: Tue, 13 Sep 1994 17:18:28 -0300
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Hutten <bhutten@FOX.NSTN.NS.CA>
- Subject: Getting multiple-record values from FMP as a list...
-
- Has anyone been successful in getting FileMaker Pro to pass back a list of
- values from several records as a list?
-
- What I want is something like:
-
- Set myList to Cell "Person"
-
- and get, not just the data for the current record, but for all the
- currently found records...Is there any way to do this? If I can't do it in
- one command, how do I step through records?
-
- Any help appreciated.
-
-
- - bill
-
-
- | Bill Hutten - bhutten@fox.nstn.ns.ca
- | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6 (902) 453 2482
- | "Hard to love, when you're bracing for impact." - Martin Amis
- =========================================================================
- Date: Tue, 13 Sep 1994 21:20:41 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: How to set a FileMaker Pro field to text >1 line
-
- Has anyone managed to set a FileMaker Pro field to a text string including
- a return character. I have treid many methods including playing with
- AppleScript's text item delimiters. I can correctly display the text on
- screen in a dialog box but FileMaker Pro usually only inserts the first
- line of the text. I have tried putting it through a loop to replace ascii
- character x with z but it doesn't work for me. I have triued using as
- string, as text etc as part of the string and as a separate statement
- before the set.
-
- As you can see at present I'm only using FileMaker Pro 2.0. I have read all
- the docs and looked at all the examples I can.
-
- tell application "FileMaker Pro 2.0"
- activate
- Set Data Field "Message:" of Database "E-mail DB" To (Get Data Field
- "Message:" of Database "E-mail DB") & (ASCII character 13) & (paragraph
- counter of message_field)
- end tell
-
- The above set line fails with (ASCII character 13), return and "/r", help!
-
- Failing that has anyone got any SMTP based receiving E-mail programs that
- are scriptable. Eudora only sends by SMTP.
-
- At present I'm hoping to step through all my e-mail messages as text files
- extracting each field and inserting it into Eudora or FileMaker Pro so that
- it takes up less room and is searchable. At present I'm using LeeMail 2.0.4
- which has no find or scripting support.
-
- Any other real world samples would be appreciated if they're small.
-
- Many thanks, Neil.
- P.S has anyone seen QuickTime 2.0 for ftping I hear it's on some BBSs.
-
- Neil Christie |Voice/Fax: 0131 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Tue, 13 Sep 1994 16:32:40 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Getting multiple-record values from FMP as a list...
- In-Reply-To: <no.id> from "Bill Hutten" at Sep 13, 94 05:18:28 pm
-
- --Bill Hutten wrote:
- >
- >Has anyone been successful in getting FileMaker Pro to pass back a list of
- >values from several records as a list?
-
- Yup. All the time. You can set values in multiple records as
- well. You just have to use Fields instead of Cells. Think of a FM Pro
- database file as a really big table. Each record in a row in that table,
- each column of the table are called Fields, and a cell of the table is
- the intersection of the Field and a Record.
-
- >What I want is something like:
- >
- >Set myList to Cell "Person"
-
- Try: Set myList to Field "Person".
-
- >and get, not just the data for the current record, but for all the
- >currently found records...Is there any way to do this? If I can't do it in
- >one command, how do I step through records?
-
- You only need to step through records in FM Pro in rare occasions.
- If you need to batch process record information you are better off
- putting the information into a list and then using the list to update
- the range of records.
-
- -Hades
- =========================================================================
- Date: Tue, 13 Sep 1994 16:50:46 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: How to set a FileMaker Pro field to text >1 line
- In-Reply-To: <no.id> from "Neil Christie" at Sep 13, 94 09:20:41 pm
-
- --Neil Christie wrote:
- >
- >Has anyone managed to set a FileMaker Pro field to a text string including
- >a return character. I have treid many methods including playing with
- >AppleScript's text item delimiters. I can correctly display the text on
- >screen in a dialog box but FileMaker Pro usually only inserts the first
- >line of the text. I have tried putting it through a loop to replace ascii
- >character x with z but it doesn't work for me. I have triued using as
- >string, as text etc as part of the string and as a separate statement
- >before the set.
- >
- >As you can see at present I'm only using FileMaker Pro 2.0. I have read all
- >the docs and looked at all the examples I can.
-
- What you are missing is the fact that FM Pro doesn't use the return
- character to designate paragraphs in its text fields. It only looks like
- it does because FM Pro does some on-the-fly translations. One way to
- handle this problem is to perform a get on text field that from FP Pro
- that has a return character in it. If you then show the result of that
- get in the Result window in AppleScript you will see the "box" character
- that represents the FM Pro "return" chracter. For those of you who like
- working with ASCII codes and the like the character that FM Pro uses is
- the Vertical Tab character, which you can generate with the Page Up key
- on an extended keyboard. If you copy and paste that "box" character from
- the Result window to the Script window you can assign a property to it
- and then you can use it throughout your script.
-
- -Hades
- =========================================================================
- Date: Tue, 13 Sep 1994 20:40:27 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Re: New ScriptWizard patcher
-
- The latest ScriptWizard Update is NOT available on AOL as far as I can tell
- via extensive searches of the Mac area's library.
-
- Could someone please put it here?
- =========================================================================
- Date: Tue, 13 Sep 1994 20:42:28 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Accessing Repeating Fields in FileMaker Pro w/AS
-
- Good idea there, with that information about using the delimiters aspect...
-
- tell application "FileMaker Pro"
- copy the Current Record of Database 1 to CurrRec
- copy cellValue of Cell "MyRepeat" to RepeatValues
- set item 2 of RepeatValues to "2"
- copy AppleScript's text item delimiters to OldDelim
- set AppleScript's text item delimiters to ASCII character 29
- copy RepeatValues as string to NewValues
- set AppleScript's text item delimiters to OldDelim
- set cellValue of Cell "MyRepeat" of CurrRec to NewValues
- end tell
-
-
- ..., I think I was sort of working in that direction in a round-about manner.
-
- What I've done is this...
-
- This database has 13 repeating fields, each capable of up to 800 repetitions.
-
-
-
- tell application "FileMaker Pro"
-
- set sepRec to Document "Separated Database"
- set repRec to Document "Repeating Database"
- set recCount to (Count of Records of sepRec)
-
- repeat with i from 1 to recCount
- set repeatList to repeatList & (Get Data Cell repeatField of Record
- i of sepRec) & ASCII character 29 as text
- end repeat
-
- repeat with i from (recCount+1) to 800
- set repeatList to repeatList & ""
- end repeat
-
- Set Data Cell repeatField of repRec to cellList
-
- end tell
-
-
-
- The reason for the set repeatList to repeatList & this & that is because with
- the data I'm working with I run "Out of Memory". [Note: How does one
- increase the memory to get more room in a script? This Mac has 24 MB of RAM
- on it and it is beyond me how I'm "running out of memory" on something this
- simple. I've got Script Editor up to 2 MB.]
-
- The reason for the second repeat, stuffing nulls in behind the real data, is
- that there is the problem about extra cells having the data duplicated in
- them until the end of all visible repetitions in a layout.
-
-
- Problem is that after a while, the system hangs. I guess this confirms that
- there is still a serious problem somewhere in the "works".
-
- I've added my two-bits to Claris Tech Support about the product manager's
- failure to make accessing a given repetition in a repeating field so
- difficult.
-
- If enough people do the same, it might make a difference....
- =========================================================================
- Date: Tue, 13 Sep 1994 19:49:50 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Getting multiple-record values from FMP as a list...
-
- >Has anyone been successful in getting FileMaker Pro to pass back a list of
- >values from several records as a list?
- >
- >What I want is something like:
- >
- >Set myList to Cell "Person"
- >
- >and get, not just the data for the current record, but for all the
- >currently found records...Is there any way to do this? If I can't do it in
- >one command, how do I step through records?
-
- Well, the shortest script I can write which does something like that is
-
- tell application "FileMaker Pro"
- Fields
- end tell
-
- which returns a list of lists. Each inner list is a list of the contents
- of each record for the corresponding field. The field content lists are in
- creation order, but only the fields in the current layout of the frontmost
- database are shown, and only the data from the shown records. You can tune
- that up in various ways (layout 0 is every field, whether it is in other
- layout(s) or not).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 14 Sep 1994 06:08:05 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Alain Mellan <mellan@ACRI.FR>
- Subject: Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
- In-Reply-To: <199409140409.GAA07540@acri.acri.fr>
-
- Hi,
-
- I received you mail, but I'm on vacation until October 3rd.
-
- I will reply as soon as I come back.
-
- Until then, have fun!
-
- --
- Alain Mellan
- Advanced Computer Research Institute fax: +33 72.35.84.77
- 1 Bvd Marius Vivier Merle voice: +33 72.35.84.92
- 69443 LYON CEDEX 03 - FRANCE email: amellan@acri.fr
- =========================================================================
- Date: Tue, 13 Sep 1994 21:17:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Clipboard -> Clipping
-
- Now that I have the Scriptalbe finder I am interested in exploring
- the use of clippings. Since many apps don't support Drag and Drop and
- clippings, I thought it would be useful to have a script that converts
- between the two. I was hoping to do this with as few osaxen as possible
- relying on the finder. But it seems that there is NO way of doing it
- without some as-yet-unwritten osax.
-
- The poorly syntaxed script below is only to give an idea of the concept
- I'm shooting for:
-
- tell application "Finder"
- make new file "clipping file" with data (the clipboard as string) with
- properties {creator type:"drag",file type:"clpt"}
- end tell
-
- So anyone feel like writing the osax, or better yet telling me how I can do
- this without one....
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 13 Sep 1994 21:21:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
-
- >I received you mail, but I'm on vacation until October 3rd.
-
- Looks like a badly written auto-reply script ;-)
-
- Hope we won't be hearing from him every day till then, I guess it is good
- that he's getting the digest...
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Tue, 13 Sep 1994 23:47:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Clipboard -> Clipping
-
- > Now that I have the Scriptalbe finder I am interested in exploring
- >the use of clippings. Since many apps don't support Drag and Drop and
- >clippings, I thought it would be useful to have a script that converts
- >between the two. I was hoping to do this with as few osaxen as possible
- >relying on the finder. But it seems that there is NO way of doing it
- >without some as-yet-unwritten osax.
- >
- > The poorly syntaxed script below is only to give an idea of the concept
- >I'm shooting for:
- >
- >tell application "Finder"
- > make new file "clipping file" with data (the clipboard as string) with
- > properties {creator type:"drag",file type:"clpt"}
- >end tell
- >
- >So anyone feel like writing the osax, or better yet telling me how I can do
- >this without one....
-
- Well, a clipping file has relatively few resources (one I just made with
- plain text dragged out of the Scrapbook has two: a 'drag' (4 bytes of
- which read TEXT) and a TEXT with the text. This is probably documented
- somewhere...if not it's reverse-engineerable for at least common cases. I
- would attack it by writing the necessary file. [I'd do it with Frontier,
- which has all the necessary verbs built in, so I'm not sure what you would
- use from AppleScript to write the resources.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Wed, 14 Sep 1994 07:01:02 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Israel Alvarez <Montressor@AOL.COM>
- Subject: FaceSpan & Window Resources
-
- Question for all you FaceSpan experts out there:
-
- I've been trying to integrate the saving of window resources for later recall
- into a project of mine. I've been successful in saving the window resources,
- but I can't figure out how to get a list of the names of window resources in
- a project. None of the obvious commands work and the docs don't seem to
- mention how this can be done. Any suggestions?
-
- Thanks in advance,
- Israel Alvarez
- =========================================================================
- Date: Wed, 14 Sep 1994 09:17:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Terry Thiel <tthiel@PRAIRIENET.ORG>
- Subject: delete me.
-
- I imagine this is going to everyone, sorry. Please delete me from the script
- digest and mailing lists. Its too hard to get time to read it. Hopefully
- there will be a newsgroup soon.
- -Terry
- =========================================================================
- Date: Wed, 14 Sep 1994 08:07:00 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Evad, Paul" <PEVAD@PUBAFFAIR.ENV.GOV.BC.CA>
- Subject: FileMaker, find records and speed
-
- I've noticed a lot of Filemaker Pro discussion on the list, with some good
- pointers that have helped me out. However one problem that I haven't seen
- addressed is a speed factor. I'm dealing with a database with over 20,000
- records, and the following core of my script application just runs too darn
- slow. We timed the script vs. the regular FileMaker Find command and found
- the script was about 10 times slower to respond. Has anyone else had a
- similar problem?
-
- Here is the core routine of the script:
-
- on fetchname()
- tell application "FileMaker Pro"
- Show (Records of Database "Phone Directory" whose Cell "Name" of Layout 0
- contains quername)
- set y to Count of Records
- if y is equal to 1 then
- copy Cell "Name" of Record cnt to namef
- copy Cell "Office Phone" of Record cnt to phonef
- copy Cell "Fax" of Record cnt to faxf
- copy Cell "Street Address" of Record cnt to addf
- display dialog namef & return & "Phone: " & phonef & return & "Fax: " &
- faxf &
- return & "Address: " & addf buttons {"OK"} default button 1
- beginap()
- else
- display dialog "I found " & y &
- " records that match your request" buttons {"list all", "try again"}
- default button 2
- set returnpar to result
- set buttonanswer to button returned of returnpar
- if buttonanswer = "list all" then
- listal()
- else
- beginap()
- end if
- end if
- end tell
- end fetchname
-
- I thought that maybe the Show every record query was the culprit for the
- speed deficit, but I don't know of any other way to find and retrieve the
- needed information.
-
- Suggestions?
-
- - Paul Evad
- pevad@pubaffair.env.gov.bc.ca
- =========================================================================
- Date: Wed, 14 Sep 1994 11:03:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: delete me.
- In-Reply-To: Your message of "Wed, 14 Sep 94 09:17:55 CDT"
-
- Terry,
- >I imagine this is going to everyone, sorry. Please delete me from the script
- >digest and mailing lists. Its too hard to get time to read it. Hopefully
- >there will be a newsgroup soon.
-
- Send the unsub message to listserv@dartmouth.edu in the form
-
- signoff macscrpt
-
- Thanks.
-
- pf
- =========================================================================
- Date: Wed, 14 Sep 1994 12:58:57 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: FileMaker, find records and speed
- In-Reply-To: <no.id> from "Evad, Paul" at Sep 14, 94 08:07:00 am
-
- --Evad, Paul wrote:
- >
- >I've noticed a lot of Filemaker Pro discussion on the list, with some good
- >pointers that have helped me out. However one problem that I haven't seen
- >addressed is a speed factor. I'm dealing with a database with over 20,000
- >records, and the following core of my script application just runs too darn
- >slow. We timed the script vs. the regular FileMaker Find command and found
- >the script was about 10 times slower to respond. Has anyone else had a
- >similar problem?
-
- You must be new around here. We had the FM Pro finding speed
- discussion on at least two occasions that I can think of, however,
- niether of those has been in the last 3-4 months. The simplest solution
- to your problem is to upgrade to FM Pro 2.1v3. It has a vastly improved
- Show command than earlier versions...
-
- -Hades
- =========================================================================
- Date: Wed, 14 Sep 1994 14:13:18 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: JPEGView, Startup screen, and !DeskPict
-
- I'd like to be able to use JPEGView to open a graphic file and save the file as
- a startup screen. Actually, I'm trying to make this startup screen work in
- conjunction with the !DeskPict extension. From what I understand, !DeskPict
- extension requires a PICT file with id of 0 (zero) in the system folder and the
- file name of "DeskPicture" in order to work. I thought if I use JPEGView to open
- an existing graphic file and save it into a startup screen format I would be OK.
-
- Assuming the file I want to convert to a startup screen is sitting on my desktop
- and is already named "DeskPicture", here's the script:
-
- -----------------------------------------------------------------
- tell application "JPEGView"
- set myPicture to alias "Mac HD:Desktop Folder:DeskPicture"
- activate
- open {myPicture} with type fixing and changing creators without visible
- save document 1 as startup screen with reduced colors without preview and
- icons
- quit
- end tell
-
- --relocate is from GTQ library
- relocate myPicture to alias (path to system folder as string)
- -----------------------------------------------------------------
-
- This seems to work fine but on restart, I'm getting a trashy looking screen. I
- can also see a faint message displayed on the desktop saying I need Quicktime
- and Photo-JPEG decompressor for it to work (I have QT 2.0). Am I missing the
- point in what is needed in order for this file to work with !DesktPict? Has
- anyone tried something similar? Am I doing something wrong with JPEGView? What's
- with that ghostly message? Is it a conflict with the !DeskPict extension and
- JPEGView or my system version (7.0.1)? Am I rambling? Am I making any sense? Is
- there anybody out there?
-
- -----------------------------------------------------------------
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
-
- Once, I was a smoker. Now I'm just a hacker.
- -----------------------------------------------------------------
- =========================================================================
- Date: Wed, 14 Sep 1994 15:41:47 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS Monthly Harrange
-
- Save this mail message. It includes all the e-mail addresses you need when
- dealing with the Mac Scripting mailing list.
-
- *** To Unsubscribe from this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: unsubscribe
- Message: signoff macscrpt
-
-
- *** To subscribe to this list:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: subscribe
- Message: subscribe macscrpt <your full name here>
-
-
- *** To receive the mail as daily digest:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: digest
- Message: set macscrpt digest
-
-
- *** To get other info on using this automated system:
-
- Send to: LISTSERV@dartmouth.edu
- Subject: help
- Message: help
-
-
- *** To ask the human moderators a question:
-
- Send to: MacScripting-Request@dartmouth.edu
-
-
- *** To send a message to the mailing list:
-
- Send to: MacScripting@dartmouth.edu
-
-
- Thanks.
-
- -The Moderators (a very offcial way of saying "Fred & Andy")
- =========================================================================
- Date: Thu, 15 Sep 1994 08:43:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
-
- Kim-son Tran <ktran@CC.ATINC.COM> writes:
-
- >This seems to work fine but on restart, I'm getting a trashy looking screen. I
- >can also see a faint message displayed on the desktop saying I need Quicktime
- >and Photo-JPEG decompressor for it to work (I have QT 2.0).
-
- That's an easy one: the PICT is QuickTime-JPEG-compressed, and DeskPict is
- loading before QuickTime, hence the picture doesn't display properly. Two
- solutions:
-
- * Create a regular uncompressed PICT (not being familiar with JPEGView,
- I'll leave the details of this as an exercise for the reader :-)).
-
- * Make QuickTime load before DeskPict, by changing the name of one or the
- other.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 14 Sep 1994 13:54:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Glenn L. Austin" <glenn_a@EFN.ORG>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
-
- Kim-son Tran wrote:
- >I'd like to be able to use JPEGView to open a graphic file and save the file as
- >a startup screen. Actually, I'm trying to make this startup screen work in
- >conjunction with the !DeskPict extension. From what I understand, !DeskPict
- >extension requires a PICT file with id of 0 (zero) in the system folder and the
- >file name of "DeskPicture" in order to work. I thought if I use JPEGView to
- >open
- >an existing graphic file and save it into a startup screen format I would be
- >OK.
-
- The problem is that !DeskPict is loading before QuickTime, so !DeskPict
- isn't seeing any compression/decompression code that QuickTime provides.
- Rename !DeskPict to load after QuickTime, or better yet, IMO, get something
- like Now Fun which has a desktop picture utility, and doesn't actually do
- anything with the picture until AFTER the Finder starts. Simply use a
- common picture name, and use your script to change the picture file itself.
-
- //
- // Glenn L. Austin
- // Computer Wizard and Racing Car Driver
- // Internet: glenn_a@efn.org
- //
- =========================================================================
- Date: Thu, 15 Sep 1994 10:01:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: FileMaker oddity
-
- Speaking of FileMaker Pro, why do I get a syntax error trying to compile
- this:
-
- tell database 1 of application "FileMaker Pro"
- end tell
-
- while this:
-
- tell application "FileMaker Pro"
- tell Database 1
- end tell
- end tell
-
- compiles OK?
-
- It's true, the dictionary doesn't list "database" as one of the elements of
- class "application". It does list "database" as an element of class "document".
- But the following won't compile either:
-
- tell Database 1 of document 1 of application "FileMaker Pro"
- end tell
-
- whereas this:
-
- tell document 1 of application "FileMaker Pro"
- tell Database 1
- end tell
- end tell
-
- does.
-
- In both cases, the "1" following the word "database" is highlighted, and
- the error reported is "expected end of line but found number".
-
- Remember, I'm not trying to _run_ any scripts, just _compile_ them. This means
- the problem can't be in any FileMaker code, but in the dictionary, or possibly
- in AppleScript 1.1 itself.
-
- I'm using FileMaker Pro 2.1CDv1. I know the US version is up to 2.1v3, but
- Claris are a little slow with their international updaters.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Wed, 14 Sep 1994 18:06:35 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: "Save As..." in Eudora?
-
- Friends:
-
- Is it possible to script Eudora's "Save As..." (from the File menu,
- version 1.4.3, though 1.5 beta would be okay)? I would like to set up a
- script which saves my MACSCRIPT Digests to a specified folder, so that it
- can be read using EasyView. The Eudora "Save" command doesn't seem to be
- the same thing.
-
- Thanks for all the help!
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Wed, 14 Sep 1994 15:47:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: FileMaker oddity
-
- >Speaking of FileMaker Pro, why do I get a syntax error trying to compile
- >this:
- >
- > tell database 1 of application "FileMaker Pro"
- > end tell
- >
- >while this:
- >
- > tell application "FileMaker Pro"
- > tell Database 1
- > end tell
- > end tell
- >
- >compiles OK?
-
- >Lawrence D'Oliveiro fone: +64-7-856-2889
-
-
- Synchronisity! This is not a FileMaker oddity but an AppleScript gotcha.
-
- I have been having this problem with another in house app for the last
- couple of days until a colleague pointed the answer out.
-
- The problem is that AppleScript doesn't know about any of your apps special
- terminology until it hits the
-
- application "FileMaker Pro"
-
- in the tell block. Pretty dumb, but true. So AppleScript can't make hide
- nor hair of
-
- tell database 1 of application "FileMaker Pro"
- end tell
-
- but it does understand the following (because it knows where to look).
-
- tell application "FileMaker Pro"
- tell Database 1
- end tell
- end tell
-
- AppleScript can understand
-
- tell document 1 of application "FileMaker Pro"
- tell Database 1
- end tell
- end tell
-
- because the class document is defined in the standard suite. You can do
- this with anything in the standard suite.
-
- We are rapidly realising that tell blocks are not a panacea!
-
- What really irks me about AppleScript is that its not very orthogonal.
- There are lots of things you can do when sending events to applications
- that can't be done when sending events to scripts (e.g. optional
- parameters, elements, and so on).
-
- That and the bane of my life, lame compile time checking.
-
- Is Apple working on AppleScript 2.0?
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Wed, 14 Sep 1994 16:00:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Problem in Read/Write osax or me?
-
- I'm getting an "Out of Memory" error when I'm attempting to read a file that
- I created with the same script.
-
- Here's what I'm doing:
-
- First I create the file and write a list to the file using:
-
- set refNum to open for access file (thePath & fileName) with write permission
- write whoList to refNum
- close access refNum
-
- The format of "whoList" is a list of records with the fields:
-
- folderName:string
- account:string
-
- There are only 12 entries in the list with about 30-40 bytes per record.
-
-
- I then try to read the list later on by doing the following:
-
- set refNum to open for access file ((DTSPrefFolder as string) & fileName)
- set whoList to read refNum as list
- close access refNum
-
- The open returns a good refNum but I get an out of memory error when I hit
- the read.
-
- The odd thing is that this script works fine on my Centris 610 running System
- 7.5b2 and AppleScript 1.1 but it fails on a PowerMac 6100/60 with System 7.5.
- The one other difference I noted between the two machines is that the
- Read/Write osax (is that right?) is version 1.1 on the Centris and 1.1.1 on
- the PowerMac. Is there a difference between the two that could cause this
- error.
-
- Thanks for the help.
-
- Greg Francis
-
- --------------------------------------------------------------------------
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- =========================================================================
- Date: Wed, 14 Sep 1994 19:09:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Is 4D First scriptable?
-
- AND, has anyone used it yet?
-
- Thanks,
-
- ~ Kiran
-
- --
- 1628 5th Street NW Washington DC 20001 202/483-3373 <groo@netcom.com>
- =========================================================================
- Date: Wed, 14 Sep 1994 16:39:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 12 Sep 1994 to 13 Sep 1994
-
- Are there any tools along the lines of FaceSpan that allow you to produce
- double-clickable AppleScript applications with menus/dialogs/etc? (I've
- already considered HyperCard 2.2, but the overhead is too high and I don't
- like the feel of HyperCard generated apps).
-
- I'd really like to use FaceSpan, but we need something soon.
-
- __________________________________________________________________________
- Mark/Space Softworks voice 408-293-7299
- 111 West Saint John, 2nd Floor fax 408-293-7298
- San Jose, CA 95113 bbs 408-293-7290
-
- Macintosh connectivity software: Internet: mspace@netcom.com
- Communicate, ZMODEM Tool, PageNOW! AppleLink, AOL: MARKSPACE
- Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Wed, 14 Sep 1994 20:01:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
- Subject: Scripting Eudora 2.0.3
-
- I am trying to create a mailserver of sorts for Eudora 2.0.3.
- Unfortunately, I don't know how to read the *body* of a message. (I can get
- the subject, to, and from fine). Can someone help me? Perhaps someone can
- help me decipher the eudora dictionary (I am new to this) or tell me how to
- do it....thanks.
-
- --
- Joseph Goodman
- aka Hillbilly Bob=81
- jgoodma1@cc.swarthmore.edu
- Be true unto your flubba.
- --
- If you are using the random generator and need help, send a message with
- HELP as its subject.
- =========================================================================
- Date: Wed, 14 Sep 1994 20:54:03 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: >>Is 4D First scriptable?
-
- Reply to: >>Is 4D First scriptable?
- >Is 4D First scriptable?
- >AND, has anyone used it yet?
-
- One way or another, I bet it is...
- I am _just_starting_ to script 4D Server. Our group has it up and
- running with one tiny table to learn on.
- 4D Server itself is not scriptable. However, a companion application
- called 4D AppleScript (which accompanies it) is.
- You're supposed to run both simulaneously. You direct your AppleEvent
- activity to 4D AppleScript and it interfaces with 4D Server. Soft
- documention is pretty good, but I'm just a beginner.
- This little arrangement of applications is not too unusual. For
- instance, QuickMail itself is not scriptable, but you can script QuickMail if
- you are also running QuickAE application (from a third-part out of Dallas).
- You direct your AE commands to QuickAE and it interfaces with QuickMail.
-
-
- --Richard
-
- ---------------------------------------------------------------------------
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 14 Sep 1994 23:18:33 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: Scripting Eudora 2.0.3
-
- At 8:01 PM 14.9.94, Joseph Goodman wrote:
- >I am trying to create a mailserver of sorts for Eudora 2.0.3.
- >Unfortunately, I don't know how to read the *body* of a message. (I can get
- >the subject, to, and from fine). Can someone help me? Perhaps someone can
- >help me decipher the eudora dictionary (I am new to this) or tell me how to
- >do it....thanks.
-
- This works for me:
-
- tell application "Eudora2.1"
- activate
- set bod to (body of the first message in mailbox "In" of mail folder "")
- return bod
- end tell
-
-
- That comes from 2.1 -- I can't say whether or not anything has changed
- since 2.0.3... WAIT! I just read the README for 2.1...it says "Added
- AppleScript 'body' message property..." You'll have to pick up the 2.1 beta
- at ftp.qualcomm.com...
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Thu, 15 Sep 1994 06:19:26 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Wagner Luiz Truppel <wlt@MERCURIO.UC.PT>
- Subject: [Q] Help needed re: deciphering descriptor records
-
- Hi,
-
- I'm writing an osax and so far things are moving on smoothly, except for
- the problem below. I have a parameter that can be either an integer or a
- list of exactly 4 strings, but nothing else. Therefore, I've set its type
- to typeWildCard and it's up to the osax code to deal with the type
- decoding.
-
- In the osax code, I first try getting the descriptor record coerced to a
- typeSMInt (short integer) and if that fails, I then try coercing to a
- typeAEList. Both coercions work fine, given the proper input. My problem
- begins when, after the descriptor record has been coerced to a list, I try
- to coerce the result to a list of strings.
-
- In the aete resource, I've defined a class with id cParamList = 'prmL'
- whose only property is a list of class typeChar (strings) and id pParamList
- = 'prml'. This class exists only to help the osax determine whether or not
- the given list is a list of strings.
-
- If I now try to coerce the descriptor list to a descriptor list of type
- pParamList, the coercion fails, even if the input *is* a list of strings!
- Out of desperation, I also tried coercing to a type cParamList, but that
- fails too (but that, I think, is how it should be).
-
- So, my question is: where am I screwing up?
-
- I apologize if this is too technical a question to be posted here.
- Thanks for any and all help.
-
- Wagner Luiz Truppel WLT@MERCURIO.UC.PT
-
- *** I don't think. Therefore, I'm not sure I am. ***
- ___________________________________________________________
- =========================================================================
- Date: Thu, 15 Sep 1994 16:28:57 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: CopyFiles to server
-
- I'm still operating with sys 7.1 and finderlib, and I'm having difficulties
- copying files to a DataClub server. If the file is there already, AS comes
- up with a message "Can't find "DataClub:Trash". Everytime you manually
- delete a file off DataClub, it comes up with an alert saying it doesn't
- have a Trash, and deletions are permanent.
-
- Workarounds?
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Thu, 15 Sep 1994 01:26:28 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Random Number Generator <jgoodma1@CC.SWARTHMORE.EDU>
- Subject: RESULT OF RANDOM REQUEST ([Q] Help needed re: deciphering
- descriptor records): Couldn't understand your request.
-
- >Hi,
- >
- >I'm writing an osax and so far things are moving on smoothly, except for
- >the problem below. I have a parameter that can be either an integer or a
- >list of exactly 4 strings, but nothing else. Therefore, I've set its type
- >to typeWildCard and it's up to the osax code to deal with the type
- >decoding.
- >
- >In the osax code, I first try getting the descriptor record coerced to a
- >typeSMInt (short integer) and if that fails, I then try coercing to a
- >typeAEList. Both coercions work fine, given the proper input. My problem
- >begins when, after the descriptor record has been coerced to a list, I try
- >to coerce the result to a list of strings.
- >
- >In the aete resource, I've defined a class with id cParamList =3D 'prmL'
- >whose only property is a list of class typeChar (strings) and id pParamList
- >=3D 'prml'. This class exists only to help the osax determine whether or no=
- t
- >the given list is a list of strings.
- >
- >If I now try to coerce the descriptor list to a descriptor list of type
- >pParamList, the coercion fails, even if the input *is* a list of strings!
- >Out of desperation, I also tried coercing to a type cParamList, but that
- >fails too (but that, I think, is how it should be).
- >
- >So, my question is: where am I screwing up?
- >
- >I apologize if this is too technical a question to be posted here.
- >Thanks for any and all help.
- >
- >Wagner Luiz Truppel WLT@MERCURIO.UC.PT
- >
- > *** I don't think. Therefore, I'm not sure I am. ***
- >___________________________________________________________
-
- --
- Joseph Goodman
- aka Hillbilly Bob=81
- jgoodma1@cc.swarthmore.edu
- Be true unto your flubba.
- =========================================================================
- Date: Thu, 15 Sep 1994 16:54:30 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: >>Is 4D First scriptable?
-
- > Reply to: >>Is 4D First scriptable?
- >>Is 4D First scriptable?
- >>AND, has anyone used it yet?
-
- You should have a look at one of the AEVT externals packs (eg System7Pack
- on bu.edu) as 4D is not AEVT-aware. I used it quite a lot with 4D 2.2.3,
- and found it useful, but it's a lot of work doing the coding.
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Thu, 15 Sep 1994 00:51:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Sean Elfstrom <selfstro@CS.TRINITY.EDU>
- Subject: Re: Scripting Eudora 2.0.3
- In-Reply-To: <no.id> from "Joseph Goodman" at Sep 14, 94 08:01:18 pm
-
- >
- > I am trying to create a mailserver of sorts for Eudora 2.0.3.
- > Unfortunately, I don't know how to read the *body* of a message. (I can get
- > the subject, to, and from fine). Can someone help me? Perhaps someone can
- > help me decipher the eudora dictionary (I am new to this) or tell me how to
- > do it....thanks.
- >
-
- I believe that field "" of a message will get you the body. (at least
- it seems that's how I did it in Eudora 1.4.3...)
-
- --
- ---------------------------------------------------------------------
- Sean Elfstrom | Trinity University
- 10819 Auldine | selfstro@cs.trinity.edu
- San Antonio, TX 78230 | http://www.cs.trinity.edu/~selfstro/
- (210) 341-4624 | PGP Key available via finger
- =========================================================================
- Date: Thu, 15 Sep 1994 00:19:05 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
-
- Glenn L. Austin <glenn_a@EFN.ORG> wrote:
- >
- >... better yet, IMO, get something like Now Fun which has a desktop picture
- >utility, and doesn't actually do anything with the picture until AFTER the
- >Finder starts. Simply use a common picture name, and use your script to
- >change the picture file itself.
-
- A better thing that I found is D=E9cor. There's a brand new version that is
- scriptable. You can change pictures and behavior with scripts. Drag and
- drop to change the background screen! D=E9cor is $5 shareware from Fran=E7o=
- is
- Pottier <pottier@clipper.ens.fr> and available at all fine archives.
-
- Jon
- =========================================================================
- Date: Thu, 15 Sep 1994 05:45:23 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Bruce Pelto <CPelto@AOL.COM>
- Subject: Re: CopyFiles to server
-
- I had the same problem, "Can't find "DataClub:Trash".
-
- My solution was to develop a script to go into the server volumn and delete
- all the old backup files a few minutes before copying the new backup into it.
-
- Why a few minutes? Well it takes a bit for the server volumn to "digest" the
- trashed files.
- =========================================================================
- Date: Thu, 15 Sep 1994 06:02:23 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Scripting Eudora 2.0.3
-
- > That comes from 2.1 -- I can't say whether or not anything has changed
- > since 2.0.3... WAIT! I just read the README for 2.1...it says "Added
- > AppleScript 'body' message property..." You'll have to pick up the 2.1 beta
- > at ftp.qualcomm.com...
-
- 2.1 has been released, far as I know. I haven't actually looked (a phrase
- I've been using a lot in the past few minutes <grin>) but I received an
- announcement of its availability.
-
- I think that field "" is the body in 2.0.x, and may be so in 2.1.
- I've never scripted anything BUT 2.1 <grin>
-
- ~ Kiran
-
- --
- 1628 5th Street NW Washington DC 20001 202/483-3373 <groo@netcom.com>
- =========================================================================
- Date: Thu, 15 Sep 1994 12:34:50 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gateway <Gateway@OUI.COM>
- Organization: Odyssey Ultraware Inc.
- Subject: NDN: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
-
- Sorry. Your message could not be delivered to:
-
- musikTypes,UltraLink (The name was not found at the remote site. Check that
- the name has been entered correctly.)
- =========================================================================
- Date: Thu, 15 Sep 1994 14:16:42 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tony McDonald <Tony.McDonald@NEWCASTLE.AC.UK>
- Subject: Eudora 2.1 and notifying applications...
-
- Hi,
- Can someone help me out here? I have Eudora 2.1 (a truly *excellent*
- program!), AppleScript 1.1 and the Eudora Announcer 1.0 application (with
- the Eudora notify osax).
-
- Try as I might, I can't get it to work.
-
- I send the following to Eudora
-
- tell application "Eudora"
- start notifying alias "Pandora:Tony's Announcer" when mail arrives
- end tell
-
- The applet "Tony's Announcer" is
-
- on notice(theMessages)
- display dialog "Yes, you have new messages..."
- end notice
-
-
- please note that this is *not* the full Eudora Announcer 1.0 - just a stub
- so's I can tell something is happening. The applet "Tony's Announcer" is
- saved as an application with Stay open and never show startup screen
- checked.
-
- If the applet is not running and Eudora gets some new mail, it launches the
- applet and....nothing.
-
- The dictionary entry for notice in Eudora 2.1 is
- notice: Eudora sends this event to notify an application that something happened
- notice
- [occurrence mail arrives/mail sent/will connect/has connected] --
- what happened
- [messages list] -- of the messages involved
-
- Is there something wrong with my applet syntax? (ie I don't mention
- 'occurrence' anywhere). The Eudora notify osax only has an entry for
- 'notify',not 'notice' by the way.
-
- Thanks in advance for any help people might be able to give.
- Tone
-
- ----------------------------------------------- Tony.McDonald@newcastle.ac.uk
- Dr Tony McDonald, Apple Systems Advisor,Computing Service,Newcastle University
- Newcastle Upon Tyne, NE1 7RU. Tel: +44 91 222 8571 Fax: +44 91 222 8765
- http://launchy.ncl.ac.uk/Default.html Using Eudora 2.1fc2-9.94
- =========================================================================
- Date: Thu, 15 Sep 1994 07:05:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kirk Stork <kastork@NPS.NAVY.MIL>
- Subject: Rifling a Eudora 1.4.3 Mailbox
-
- I need to go through a mailbox and extract information to put in a
- database. I have this little hack that uses iostream in c++, that works,
- but I was thinking...could a script be set up to do this. If it was a
- script it could continually watch my inbox and process files with the right
- subject line...
-
- The program reads a line, looks for a keyword, if it finds the keyword it
- starts processing lines, one field per line until it sees another keyword.
-
- I've never written a script, so I don't know the capabilities. By the way,
- is there a FAQ for this list?
- .
- .
- .
- // this is in a loop
-
- ifs.getline (buf, 128, '\n');
- i =ifs.rdstate();
- if ( i & ios::goodbit) break;
- if (( !strcmp ( buf, EORKey)) {
- inputState = 0;
- ofs << '\n';
- }
- if ( inputState ) {
- ofs << buf << '\t';
- }
- if (( !strcmp ( buf, borKey)) {
- inputState = 1;
- }
- .
- .
- .
-
- Thanks in advance for any suggestions/comments.
-
- Kirk Stork
- kastork@nps.navy.mil
- =========================================================================
- Date: Thu, 15 Sep 1994 10:38:16 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gib Veconi <Gib_Veconi@SCP.COM>
- Subject: RE> MACSCRPT Digest - 13 SI
-
- Strictly speaking, no, 4D First is not scriptable.
-
- Another person on this list mentioned 4D AppleScript. 4D AppleScript is
- middleware which can be used to talk to a 4D Server app using AppleScript.
- Although it is very powerful and fairly straightforward to use, its
- functionality is limited to operations on the data tables. You can't script
- actions of the 4D program.
-
- ------ From: Macintosh Scripting Systems, Thu, Sep 15, 1994 ------
-
- Date: Wed, 14 Sep 1994 19:09:31 -0400
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Is 4D First scriptable?
-
- AND, has anyone used it yet?
-
- Thanks,
-
- ~ Kiran
-
-
- ______________________________________________________________________________
-
- _______ _______ ________
- | _____\ | _____\ |\ _____ \ Gib Veconi
- |\ \____| |\ \____| \ \ \____\ \ System Analyst
- \ \_____ \ \ \ \ \ \ _____/ SCP Communications, Inc.
- \|_____\ \ \ \ \____ \ \ \____/ 134 West 29th Street
- |\______/ \ \______\ \ \_\ New York, NY 10001
- \|______/ \|______| \|_| gib@scp.com
-
- ______________________________________________________________________________
- =========================================================================
- Date: Thu, 15 Sep 1994 18:12:42 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Angus McIntyre <angus@AEGYPT.DEMON.CO.UK>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
-
- At 8:13 PM 14.09.94, Kim-son Tran wrote:
- >... I thought if I use JPEGView to open an existing graphic file and save it
- >into a startup screen format I would be OK ... on restart, I'm getting a
- >trashy
- >looking screen. I can also see a faint message displayed on the desktop saying
- >I need Quicktime and Photo-JPEG decompressor for it to work (I have QT 2.0).
-
- I would suspect that the problem is that at the time the picture is read by
- !DeskPict, QuickTime isn't yet loaded. !DeskPict gets loaded first, and
- QuickTime is nowhere around when it tries to set up the background picture
- for use. The System tries to make sense of what appears to be a PICT, but
- without QuickTime to tell it how to interpret the picture, all it can get
- is junk, plus the "You need QuickTime message" which was automatically
- saved with the picture when it was created (when QuickTime *was*
- available). Hence the mess.
-
- That would be my best guess at what's happening. I remember something
- similar back in the bad old days before System 7, when I had a startup
- screen that used TrueType fonts. TrueType was then an extension, and
- because the startup screen was displayed before TrueType loaded, the
- TrueType fonts came out as scaled-up bitmaps.
-
- The solution is to find a way to save the startup screen resource as a
- 'vanilla' picture, without using JPEG/PhotoCD compression. I would guess
- that what JPEGView is doing is simply saving the picture as a resource
- without checking to see what format the original is in - I doubt that the
- author would have written it to apply QuickTime compression to a startup
- screen, knowing that QuickTime mostly won't be available at the point at
- which startup screens are typically displayed. If this is correct, then the
- problem simply becomes one of figuring out a way of handing JPEGView a
- standard, old-style, uncompressed PICT, rather than whatever weird flavour
- you're currently giving it.
-
- Does that help?
-
- A
-
-
- x---------------------------------------+------------------------------------x
- | And even madmen manage to convey. | angus@aegypt.demon.co.uk |
- | Unwelcome truths in lonely gibberish. |------------------------------------|
- | ["The Useful", W.H. Auden] | http://www.tardis.ed.ac.uk/~angus/ |
- x---------------------------------------+------------------------------------x
- =========================================================================
- Date: Thu, 15 Sep 1994 14:03:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: Eudora 2.1 and notifying applications...
-
- At 8:16 AM 15.9.94, Tony McDonald wrote:
- >please note that this is *not* the full Eudora Announcer 1.0 - just a stub
- >so's I can tell something is happening. The applet "Tony's Announcer" is
- >saved as an application with Stay open and never show startup screen
- >checked.
- >
- >If the applet is not running and Eudora gets some new mail, it launches the
- >applet and....nothing.
-
- Tony --
-
- I'm with you...I've had no luck at all with Announcer 1.0, nor with any
- "test" script (I did like you did, and wrote a very simple test to see if
- it was receiving any notice...I got a launch, then nothing). And the
- "Eudora Notify Controller" hasn't worked for me either. It seems to turn
- notification "on" for certain apps, but I can't get it to turn it back off.
- Both "E.N.C." and the Announcer seem to be working directly with
- AppleEvents, rather than relying on the Eudora Suite of the AppleScript
- code...I don't know why. Help, anyone?
- Has anyone talked to Steve Dorner about this?
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Mon, 12 Sep 1994 21:12:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: PageMaker fakes it's clipboard?
- In-Reply-To: <9409130022.AA12617@reef.bucknell.edu>
-
- I'm doing some AppleScript scripting with PageMaker, and I've noticed a
- problem with copying text from PageMaker. It seems that PageMaker
- maintains an internal clipboard file and hashes this clipboard out to the
- system clipboard when another application is moved to the front.
-
- I haven't been able to figure out a workaround for this problem. PageMaker
- is the only application I'm using in the script, so sending it to the
- background isn't an option.
-
- Anybody else have experiences, suggestions, or condolences to share?
-
- Thanks,
-
- Jeff Boulter
-
-
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
- =========================================================================
- Date: Thu, 15 Sep 1994 16:03:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
- Subject: What can I do with something of class TEXT?
-
- I am trying to manipulate something of type TEXT to look for certain
- keywords. The keywords will be an entire line, and the text I need to
- extract will be an entire line. Can anyone suggest an easy way to do this?
- I am kind of new to AS and can't seem to get any sort of "contents of line
- x" function to work on a TEXT block....
-
- --
- Joseph Goodman
- aka Hillbilly Bob=81
- jgoodma1@cc.swarthmore.edu
- Be true unto your flubba.
- =========================================================================
- Date: Thu, 15 Sep 1994 16:25:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Scripting SITcomm to generate VT220 function keys
-
- The following Frontier two-liner was intended to make SITcomm generate
- the VT220 F8 function key, defined as ESC-O-l:
-
- escapeString = char(27) + 'O' + 'l'
- SITcomm.sendText(escapeString)
-
- When the sendText call executes, SITcomm beeps and evidently doesn't
- send the command string. Shouldn't it? I was knee-deep in VT220
- set-up commands at the time, so I may have screwed something else up...
-
- Thanks.
-
- -David.
-
- ____________________________________________________
-
- David C. Myers
- myers@acec.com
- =========================================================================
- Date: Thu, 15 Sep 1994 14:24:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Re: PageMaker fakes it's clipboard?
-
- Jeff said:
- > I'm doing some AppleScript scripting with PageMaker, and I've noticed
- > a problem with copying text from PageMaker. It seems that
- > PageMaker maintains an internal clipboard file and hashes this
- > clipboard out to the system clipboard when another application is moved
- > to the front.
- >
- > I haven't been able to figure out a workaround for this problem.
- > PageMaker is the only application I'm using in the script, so sending
- > it to the background isn't an option.
-
- Why not? You could switch between 'activate pagemaker' and 'activate me',
- since you're guaranteed to at least have your script's application running ...
-
- -roy
- =========================================================================
- Date: Thu, 15 Sep 1994 16:26:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
-
- kevin Purcell writes:
-
- What really irks me about AppleScript is that its not very orthogonal.
- There are lots of things you can do when sending events to
- applications that can't be done when sending events to scripts
- (e.g. optional parameters, elements, and so on).
- --
- This bugs me too. If I have a script, a normal script, with say, some
- subroutine like this:
-
- on sayHello (userName)
- display dialog "Hi, " & userName
- end sayHello
-
- and call the complied script "hey", i can't get a tell script or run
- script command in another different script to make it do its thing.
- You know, something like a :
- tell "hey"
- sayHello ("Bob")
- end tell
-
- Does anyone know the correct syntax for telling a complied script how
- to execute one of its subroutines with a given parameter from another
- script? I could save them all as applets, and do a lot of tell
- application whatevers, i guess, but that would open up all the memory
- leakage dangers, and i want to try this script library thing anyway, I
- know it's possible, I'm just kind of stumped...
-
- Can anyone help me out here? I can send you a jazzy script for
- payment, if you want...
-
- Jason
-
- --
- Are you trying to say waffles are | Jason Frankovitz
- diuretics, or that consuming diuretics | Bloomington, IN
- makes you waffle? | jfrankov@indiana.edu
- =========================================================================
- Date: Thu, 15 Sep 1994 16:35:44 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: Quicktime and AppleScript
-
- Quick question.
-
- Does or does not AppleScript require Quicktime (in some fashion).
- I will stop at this point in order to save myself from further humiliation :(
-
- Frank C.
- R&E
- =========================================================================
- Date: Thu, 15 Sep 1994 17:41:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Thomas <jthomas@PLUTO.NJCC.COM>
- Subject: Re: How to set a FileMaker Pro field to text >1 line
-
- >
- >Failing that has anyone got any SMTP based receiving E-mail programs that
- >are scriptable. Eudora only sends by SMTP.
- >
-
- Get SMTP server s/w like mail share thats compatible with Eudora
-
- >At present I'm hoping to step through all my e-mail messages as text files
- >extracting each field and inserting it into Eudora or FileMaker Pro so that
- >it takes up less room and is searchable. At present I'm using LeeMail 2.0.4
- >which has no find or scripting support.
-
-
- Eudora does searching too...
-
- >Any other real world samples would be appreciated if they're small.
- >
- >Many thanks, Neil.
- >P.S has anyone seen QuickTime 2.0 for ftping I hear it's on some BBSs.
-
- Its on ftp.rasterops.com. Its part of the video vision upgrade package.
- =========================================================================
- Date: Thu, 15 Sep 1994 14:44:55 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Alec Plumb <aplumb@UCSD.EDU>
- Subject: Re: Eudora 2.1 and notifying applications...
-
- >At 8:16 AM 15.9.94, Tony McDonald wrote:
- >>please note that this is *not* the full Eudora Announcer 1.0 - just a stub
- >>so's I can tell something is happening. The applet "Tony's Announcer" is
- >>saved as an application with Stay open and never show startup screen
- >>checked.
- >>
- >>If the applet is not running and Eudora gets some new mail, it launches the
- >>applet and....nothing.
- >
- >Tony --
-
- I had to fiddle with the Eudora Notify controller to get it to work. When
- Eudora gets the start notifying event, it seems to require that the
- argument be of type application. so if fname is a string, the command
- should read something like:
-
- tell application "Eudora2.1" to start notifying application fname when mail
- arrives
-
- However, the stop notifying event seems to require that the argument be a
- string, so that the command should read something like this:
-
- tell application "Eudora2.1" to stop notifying fname when mail arrives
-
- Once I made these modifications, the following handler application (using
- the Eudora Notification OSAX) seemed to work just fine:
-
- on notify messagelist
- beep
- display dialog "notify recieved"
- end notify
-
- Alec Plumb \\ W:619/534-8166 \\
- Macintosh Support \\ H:619/294-2112 \\
- IGPP \\ SIO \\ UCSD \\ aplumb@ucsd.edu \\
- =========================================================================
- Date: Thu, 15 Sep 1994 14:48:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 408 974 7889 <kee@KAGI.COM>
- Subject: Re: Quicktime and AppleScript
-
- >Does or does not AppleScript require Quicktime (in some fashion).
- >I will stop at this point in order to save myself from further humiliation :(
-
- AppleScript does not require QuickTime.
-
- Kee Nethery
- =========================================================================
- Date: Thu, 15 Sep 1994 19:05:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Thomas <jthomas@PLUTO.NJCC.COM>
- Subject: Re: Quicktime and AppleScript
-
- >>Does or does not AppleScript require Quicktime (in some fashion).
- >>I will stop at this point in order to save myself from further humiliation :(
- >
- >AppleScript does not require QuickTime.
- >
- >Kee Nethery
-
-
- I'm 97% sure it does IF you don't thave System 7.1. I assume it uses the
- component manager, present in QT or Sys 7.1+
- =========================================================================
- Date: Thu, 15 Sep 1994 16:14:31 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Quicktime and AppleScript
-
- >>Does or does not AppleScript require Quicktime (in some fashion).
- >>I will stop at this point in order to save myself from further humiliation :(
- >
- >AppleScript does not require QuickTime.
- >
- >Kee Nethery
-
- This is true if the Component Manager is provided by some part other of the
- system.
-
- In particular systems (with early versions of system 7?) AS required QT to
- run (because AS used the Component Manager and QT contained the Component
- Manager). QT included the Component Manager because it needed it before it
- was widley availible in standard systems.
-
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Thu, 15 Sep 1994 19:49:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joseph Goodman <jgoodma1@CC.SWARTHMORE.EDU>
- Subject: Is there a way to tell if a program is running?
-
- Is there a way in AppleScript to tell if a program is running already? Or
- must I activate it every time to make sure?
-
- --
- Joseph Goodman
- aka Hillbilly Bob=81
- jgoodma1@cc.swarthmore.edu
- Be true unto your flubba.
- =========================================================================
- Date: Thu, 15 Sep 1994 17:26:01 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
-
- >This bugs me too. If I have a script, a normal script, with say, some
- >subroutine like this:
- >
- >on sayHello (userName)
- >display dialog "Hi, " & userName
- >end sayHello
- >
- >and call the complied script "hey", i can't get a tell script or run
- >script command in another different script to make it do its thing.
- >You know, something like a :
- > tell "hey"
- >sayHello ("Bob")
- >end tell
- >
- >Does anyone know the correct syntax for telling a complied script how
- >to execute one of its subroutines with a given parameter from another
- >script? I could save them all as applets, and do a lot of tell
- >application whatevers, i guess, but that would open up all the memory
- >leakage dangers, and i want to try this script library thing anyway, I
- >know it's possible, I'm just kind of stumped...
-
- Thats exactly what you do!
-
- Save it as an applet and
-
- tell app "hey"
- sayHello ("Bob")
- end tell
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Thu, 15 Sep 1994 17:52:10 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Joe Scripter <MikeL@EWORLD.COM>
- Subject: Localtalk to Ethernet Script
-
- I'm trying to write a script to switch my powerbook 540c from localtalk to
- ethernet. I've tried simply recording the action but all AppleScript does is
- open the network control panel for me and then close it again. It ignores my
- clicks to switch from ethernet to localtalk or vise versa. Any ideas?
-
- Thanks
-
- -MJL
- =========================================================================
- Date: Thu, 15 Sep 1994 21:01:00 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: loading script objects and mem problems
-
- >>Does anyone know the correct syntax for telling a complied script how
- >>to execute one of its subroutines with a given parameter from another
- >>script? I could save them all as applets, and do a lot of tell
- >>application whatevers, i guess, but that would open up all the memory
- >>leakage dangers, and i want to try this script library thing anyway, I
- >>know it's possible, I'm just kind of stumped...
- >
- >Thats exactly what you do!
- >
- >Save it as an applet and
- >
- >tell app "hey"
- > sayHello ("Bob")
- >end tell
-
- Or you could load a compiled script and use the tell command to talk to a
- variable that is the result of the load script command:
-
-
- set SomeScript to (load script (*alias to your script*))
-
- tell SomeScript
- sayHello("bob")
- end tell
-
- --and/or
-
- set SomeProp of SomeScript to "this string"
-
- Now I have a question:
-
- "but that would open up all the memory
- >>leakage dangers,"
-
- What are these dangers, I haven't heard of them, and I'm having real
- problems with a script app quiting with an error of type 1 or an out of
- memory -108 error. I can't figure it out script wise. The problem might
- be is that I'm loading a rather large (35K) library, is this my problem -
- will I have to split this into a smaller libraries for their specific uses.
-
-
- I guess that was more than one question but there all related ;-)
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Thu, 15 Sep 1994 21:13:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: Is there a way to tell if a program is running?
-
- >Is there a way in AppleScript to tell if a program is running already? Or
- >must I activate it every time to make sure?
-
- This depends if you mean running or frontmost. If you just want to check
- if its running you can use the scriptable finder if you have it or the
- processes osax of Script Tools which provides the command:
-
-
- list processes: get a list of the running applications
- list processes
- Result: list -- list of running applications
-
- So it should just be a matter of:
-
- if (list processes) contains "TargetApp" then
- --statements here
- else
- --open it??
- end if
-
- If you wanted to make sure it was in the foreground then (from the same osax):
-
- if (get foreground process) does not equal "TargetApp" then
- tell application "TargetApp" to activate
- end if
-
-
- Hasta,
-
- -Preston
-
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Thu, 15 Sep 1994 21:28:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: Localtalk to Ethernet Script
-
- >I'm trying to write a script to switch my powerbook 540c from localtalk to
- >ethernet. I've tried simply recording the action but all AppleScript does is
- >open the network control panel for me and then close it again. It ignores my
- >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
-
- I'm pretty sure that most control panels are not recordable or even
- scriptable. The exception being the 'views' control panel. The only
- properties for a control panel class refer explicitly to the 'views'
- control panel. Hopefully Apple will make more of them scriptable, but
- until then I think QuickKeys (or maybe frontier, but I've never used that)
- is your best bet.
-
- To keep up my little habit here of combining answers with questions (just
- to really confuse the subjects of threads ;-)
-
- Does CE software provide extra OSA documentation with QK3.0 or is it
- something you just have to figure out (I am thinking of upgrading from 2).
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Thu, 15 Sep 1994 22:24:54 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Quicktime and AppleScript
-
- >Quick question.
- >
- >Does or does not AppleScript require Quicktime (in some fashion).
- >I will stop at this point in order to save myself from further humiliation :(
-
- No.
-
- [But there may have been a time when a pre-release AppleScript required
- QuickTime in order to have the Component Manager available.]
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 15 Sep 1994 22:25:09 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: PageMaker fakes it's clipboard?
-
- >I'm doing some AppleScript scripting with PageMaker, and I've noticed a
- >problem with copying text from PageMaker. It seems that PageMaker
- >maintains an internal clipboard file and hashes this clipboard out to the
- >system clipboard when another application is moved to the front.
-
- Non-trivial applications typically work that way. Nothing unique about
- PageMaker.
-
-
- >I haven't been able to figure out a workaround for this problem. PageMaker
- >is the only application I'm using in the script, so sending it to the
- >background isn't an option.
-
- Something else must be running. Using the clipboard at all suggests that
- the user (you or a client) is not using the machine to do other work while
- the script is running. So bringing Finder to the front shouldn't hurt too
- much.
-
- >Anybody else have experiences, suggestions, or condolences to share?
-
- The PageMaker scripting stuff I uploaded here recently may or may not
- provide some answers, which quite possibly don't use the clipboard at all.
- I was just a conduit, since I don't have PageMaker.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 16 Sep 1994 07:34:57 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: QK 3.0 and AppleScript
- In-Reply-To: <m0qlUx7-0000HNC@rz03.FH-Karlsruhe.DE> from "Preston Holmes" at
- Sep 15, 94 09:28:05 pm
-
- Preston Holmes wrote:
- :Does CE software provide extra OSA documentation with QK3.0 or is it
- :something you just have to figure out (I am thinking of upgrading from 2).
-
- Hmm, do you mean docs about their Interface to AppleScript, the QicKeys
- Toolbox? Well, nothing to rave about, really, but then you don't need it
- either. The Toolbox just offers six commands in the QK Suite beyond the
- four of the required suite: PlayByName to play a macro, Do Script,
- TypeTheString, MakeForeGround, MakeBackground (concerning the QK Toolbox),
- and DoMenuChoice.
- The last one is a real beast to figure out - I still do not know how to
- activate anything from the Apple menu. Giving the aplle as a name string
- does not work. I guess I should stick to MenuEvents for stuff like that.
-
- If you have any more questions about QK3.0, just ask and I'll see what I
- can find out from the package that's sitting here on my desk. Neglected,
- though, since it is virtually useless in helping scripting PhotoShop.
- Does anybody have any clue how to automate batch processing with that beast?
- My tries have so far been quite unsuccessful :-( Hopefully Adobe will
- sometime soon realize the need for OSA support.
-
- :-Preston
-
- Cheers,
-
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
- =========================================================================
- Date: Fri, 16 Sep 1994 08:09:04 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Thomas Baetzler <bath0011@FH-KARLSRUHE.DE>
- Subject: Alias/List questions
-
- (I apologize if this sounds familiar, but I have so far not received
- answers to my other questions, so I suppose my older posts to the
- list went into the bit bucket somewhere. I have repro turned on now...)
-
- In my current project (well, one of 'em :-), I am extracting picture
- names from a Quark document that contains low res layout images in
- order to look up the path to the corresponding highres images in a
- Cumukus database. The Quark part works fine right now, after i figured
- out the obvious (and mean) trap that you must not refer to image names
- from the document object - which will crash Quark if your document
- contains three pages or more.
-
- Searching the Cumulus database is a drag, since Cumulus apparently doesn't
- support the "get every ... whose ..." construct. At least that is what
- the german tech support told me indirectly when asking for the correct way
- to do this. :-/
-
- But at least it works without problems :-) I can find the entries I look for,
- and then I need to extract the filename, which is stored as an Alias. Now
- if I have Event logging activated, the Finder cries for the disk where my
- image is supposed to be stored :-( Stopping logging in that part of the code
- helps, but at some point in the program I need to resolve all Aliases to
- simple path names so that I can sort them to prompt the user to insert them
- one after the other (or to have a jukebox swap them in on demand). How can
- I convert an Alias to a string without having the Finder beg for disks?
-
- And another question is whether there is a quick and easy way to delete an
- item from a list. Reading the, erm, fine Language Guide doesn't give me any
- ideas besides reconstructing the list. Maybe somebody would like to write
- a list handlking OSAX that would contain something like this? (And don't
- you look at me, I don't know anything about Mac programming, hope it doesn't
- show too much).
-
- Anyways,
-
- Cheers,
-
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
-
- --
- Thomas Baetzler, bath0011@fh-karlsruhe.de, thb@spectre.ka.sub.org
- ---
- This product has been cruelly tested on cute little furry animals.
- =========================================================================
- Date: Thu, 15 Sep 1994 23:57:13 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Is there a way to tell if a program is running?
-
- >Is there a way in AppleScript to tell if a program is running already? Or
- >must I activate it every time to make sure?
-
- If it's on the local machine, just tell the app to do something...it will
- be running if it wasn't already.
-
- Given the scriptable finder, (the only way to fly, now), if you really want
- to know:
-
- tell application "Finder"
- set foo to name of processes
- end tell
- if foo contains "TheProcessNameYouCareAbout" then
- --it's running
-
- except that Finder doesn't currently appear in the list of processes (but
- will in some future Finder).
-
- To find the frontmost process:
-
- tell application "Finder"
- processes where frontmost is true
- end tell
-
- returns the name of the frontmost process, unless Finder is frontmost, in
- which case it is an error (because processes returns an empty list) <sigh>.
-
-
- Here's one workaround of the special case (there are others):
-
- tell application "Finder"
- activate
- if (processes where frontmost is true) is {} then
- set foo to "Finder"
- else
- set foo to name of processes where frontmost is true
- end if
- end tell
- foo --is name of frontmost process
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 15 Sep 1994 23:57:18 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MACSCRPT Digest - 13 Sep 1994 to 14 Sep 1994
-
- At 14:26 9/15/94, Jason Frankovitz wrote:
- > If I have a script, a normal script, with say, some
- >subroutine like this:
- >
- >on sayHello (userName)
- >display dialog "Hi, " & userName
- >end sayHello
- >
- >and call the complied script "hey", i can't get a tell script or run
- >script command in another different script to make it do its thing.
- >You know, something like a :
- > tell "hey"
- >sayHello ("Bob")
- >end tell
- >
- >Does anyone know the correct syntax for telling a complied script how
- >to execute one of its subroutines with a given parameter from another
- >script? I could save them all as applets, and do a lot of tell
- >application whatevers, i guess, but that would open up all the memory
- >leakage dangers, and i want to try this script library thing anyway, I
- >know it's possible, I'm just kind of stumped...
-
- Here's one way, not involving an applet:
-
- script one
- on sayHello(s)
- display dialog "Hello, " & s
- end sayHello
- end script
-
- one's sayHello("Jason")
-
-
- ----------
- the one's ...could be replaced by
- sayHello ("Jason") of one
-
- which I find even less pleasing as "English". Either works...you can dig
- properties out of script objects the same ways.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 15 Sep 1994 23:57:23 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Localtalk to Ethernet Script
-
- >I'm trying to write a script to switch my powerbook 540c from localtalk to
- >ethernet. I've tried simply recording the action but all AppleScript does is
- >open the network control panel for me and then close it again. It ignores my
- >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
-
- I *think* you'll need help from an outside force, such as "Player" from
- PreFab Software, or QuicKeys, or Tempo. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 15 Sep 1994 23:57:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: loading script objects and mem problems
-
- >... and I'm having real
- >problems with a script app quiting with an error of type 1 or an out of
- >memory -108 error. I can't figure it out script wise. The problem might
- >be is that I'm loading a rather large (35K) library, is this my problem -
- >will I have to split this into a smaller libraries for their specific uses.
-
- Try giving the applet more memory (in the usual way for an application,
- twiddle with the memory assignment in its Get Info box). Many are given
- more than they need...some are not given enough. Someday, there may be one
- for which the default 200K is just right.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 16 Sep 1994 10:31:37 GMT+0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Christoph Dohrmann <cd@ZKM.DE>
- Subject: AppleScript & Photoshop (was Re: QK 3.0 & AS)
-
- >Thomas Baetzler wrote:
- >Neglected,
- >though, since it is virtually useless in helping scripting PhotoShop.
- >Does anybody have any clue how to automate batch processing with that beast?
- >My tries have so far been quite unsuccessful :-( Hopefully Adobe will
- >sometime soon realize the need for OSA support.
-
- There is a product out there which is called 'photomatic' from Daystar.
- It comes as
- * OSAX (photomatic scripting extension)
- * Photoshop PlugIn
- * Photomatic (run-Only) script.
- and costs roughly $200-250
-
- How it works:
- The PlugIn records all you do (rezize, filter...) in photoshop (PS) with its own
- generic 'language' and saves these recorded actions as a text file. You can the
- n either from within PS load and play thess scripts on every picture you have in
- your front window or take a bunch of pics in the finder and drag them onto the
- photomatic script. This loads every pics into PS and executes the given script.
- you do not need the scriptable finder for this. As another option there is a fol
- der watch function that runs if you load the applet without pics...
-
- The photomatic script is limited to load-filter-save functionality. If you want
- to make more sophisticated scripts (eg combining two pictures with a cromakey an
- d stuff) you'll need to deal with the scripting extension (its aete) and the Plu
- gIn's 'doscript' command. There are a lot of hinches e.g. with modal dialog boxe
- s and stuff... I had a beta release to test about half a year ago. Maybe you can
- find a copy somewhere to take a look at it. (btw: you live roughly 3 blocks awa
- y from my house...I guess)
-
- Otherwise consider DeBabelizer a potential candidate for your tasks....
- I have a comparison that I could send to anyone who's interested.
-
- More information on this IS available but for now this might help.
-
-
- Christoph
- Dohrmann
-
-
- <cd@zkm.de>
- ZKM Karlsruhe
- Ritterstr 42 Leopoldstr. 4
- 76133 Karlsruhe 76133 Karlsruhe
- p++497219340300 p ++49721 24006
- f++497219340-39 f ++same number
-
-
- Ein Mensch der spuert, wenn auch verschwommen,
- Er muesste sich, genau genommen,
- Im Grunde seines Herzens schaemen
- Zieht vor, es nicht genau zu nehmen.
- Eugen Roth
- =========================================================================
- Date: Fri, 16 Sep 1994 08:35:06 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Philippe Chartrand <m212641@ER.UQAM.CA>
- Subject: Re: What can I do with something of class TEXT?
-
- >I am trying to manipulate something of type TEXT to look for certain
- >keywords. The keywords will be an entire line, and the text I need to
- >extract will be an entire line. Can anyone suggest an easy way to do this?
- >I am kind of new to AS and can't seem to get any sort of "contents of line
- >x" function to work on a TEXT block....
- >
-
- AppleScript doesnt "know" about words paragraphs, lines and so on, but
- Simple Text Exitor (STE) does. You can script STE in order to ask things
- like
-
- get word 3 of paragraph 2 of document 1
- set style of paragraph 1 to bold
-
- I don't think the "line" concept applies with STE (word wrapping is window
- dependent), but the paragraph does. (Look at STE dictionnary from Script
- Editor for details on this).
-
-
-
-
- >--
- >Joseph Goodman
- >aka Hillbilly Bob=81
- >jgoodma1@cc.swarthmore.edu
- >Be true unto your flubba.
-
- +----------------------------------------------------+
-
- invenire quid dicas
- inventa disponere
- ornare verbis
- agere et pronuntiare
- memoriae mandare
-
- +----------------------------------------------------+
- Philippe Chartrand voix (514) 277-1367
- 5238 De l'esplanade donnees (514) 277-6735
- Montreal (Quebec) e-mail m212641@er.uqam.ca
- Canada H2T 2Z5
- =========================================================================
- Date: Fri, 16 Sep 1994 08:57:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: What can I do with something of class TEXT?
-
- At 4:03 PM 15.9.94, Joseph Goodman wrote:
- >I am trying to manipulate something of type TEXT to look for certain
- >keywords. The keywords will be an entire line, and the text I need to
- >extract will be an entire line. Can anyone suggest an easy way to do this?
- >I am kind of new to AS and can't seem to get any sort of "contents of line
- >x" function to work on a TEXT block....
-
- If the TEXT in question is written to a file, and each "piece" that you
- need is a paragraph unto itself, you should be able to do a simple
-
- repeat with i from 1 to (number of paragraphs of file "HD:folder:file")
- if paragraph i contains "I am looking for a certain number of keywords"
- return [or set variable to...or writetext...etc] paragraph i
- end repeat
-
- Then again, it's way too early for me to think in strictly logical terms,
- but something along those lines...
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Fri, 16 Sep 1994 13:11:41 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: How can I make a window to the frontmost?
-
- I am using FaceSpan:
- How can I make a window to the frontmost in FaceSpan? How can I check if a
- window is allready opened?
-
- andreas
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Fri, 16 Sep 1994 09:15:02 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: jsullivan <jsullivan@ARPA.MIL>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
-
- On Thu, 15 Sep 1994 Jon Pugh <jonpugh@NETCOM.COM> wrote:
-
- > A better thing that I found is D=E9cor. There's a brand new
- > version that is scriptable. You can change pictures and behavior
- > with scripts. Drag and drop to change the background screen!
- > D=E9cor is $5 shareware from Fran=E7o= is Pottier
- > <pottier@clipper.ens.fr> and available at all fine archives.
-
- I could not find this in the Graphics/Utilities area of the InfoMac archives,
- could you please upload it to gaea?
-
- Thanks!
-
- -j o n-
-
- Jonathan P. Sullivan, "Webmaster" | jsullivan@arpa.mil [e]
- Technology Reinvestment Project | 703/696-8947 [v]
-
- For vital signs ... finger jsulliva@trp.ida.org
- =========================================================================
- Date: Fri, 16 Sep 1994 08:29:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: JPEGView, Startup screen, and !DeskPict
- In-Reply-To: Your message of "Fri, 16 Sep 94 09:15:02 +0800"
-
- In response to Jon Pugh, Jon Sullivan sez.....
-
- >> A better thing that I found is D=E9cor. There's a brand new
- >> version that is scriptable. You can change pictures and behavior
- >> with scripts. Drag and drop to change the background screen!
- >> D=E9cor is $5 shareware from Fran=E7o= is Pottier
- >> <pottier@clipper.ens.fr> and available at all fine archives.
- >
- >I could not find this in the Graphics/Utilities area of the InfoMac archives,
- >could you please upload it to gaea?
-
- The version that supports scripting is still in testing. I've requested that a
- copy be sent to me as well as the macgifts sites when it is released. I'll be
- sure to let everyone know.
-
- pf
- your friendly, neighborhood archivist
- =========================================================================
- Date: Fri, 16 Sep 1994 08:30:10 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovant@NCOOK.K12.IL.US>
- Subject: Re: CopyFiles to server
-
- >I'm still operating with sys 7.1 and finderlib, and I'm having difficulties
- >copying files to a DataClub server. If the file is there already, AS comes
- >up with a message "Can't find "DataClub:Trash". Everytime you manually
- >delete a file off DataClub, it comes up with an alert saying it doesn't
- >have a Trash, and deletions are permanent.
- >
- >Workarounds?
- >
- >_________________________________________________________________________
- >Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- >Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- >The gateway to New Zealand science: http://www.rsnz.govt.nz/
-
- This sounds similar to a problem I had while playing with a script to
- synchronize folders. If I remember right (and this was over 6 months ago)
- the problem is that, if the trash is empty, there is essentially no "Trash"
- folder for the script to put anything into.
-
- Shortly thereafter, I got my hands on a "real" file synch utility and
- stopped working on that particular script, without actually having to solve
- the missing "Trash" problem, so I'm afraid I can't offer a solution.
-
- --Tom
- =========================================================================
- Date: Fri, 16 Sep 1994 09:39:58 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Brown <dlb1@SEQUOIA.LLE.ROCHESTER.EDU>
- Subject: Eudora Notify Controller (was: Eudora 2.1 and notifying
- applications...)
-
- Alec Plumb <aplumb@UCSD.EDU> said:
-
- >I had to fiddle with the Eudora Notify controller to get it to work. When
- >Eudora gets the start notifying event, it seems to require that the
- >argument be of type application. so if fname is a string, the command
- >should read something like:
- >
- >tell application "Eudora2.1" to start notifying application fname when mail
- >arrives
- >
- >However, the stop notifying event seems to require that the argument be a
- >string, so that the command should read something like this:
- >
- >tell application "Eudora2.1" to stop notifying fname when mail arrives
-
-
-
- Please send any bug reports (and helpful code fragments) for the
- Eudora Notify Controller script to me and I'll submit a new version after
- the non-beta Eudora's are released. I originally wrote this for Eudora
- 1.4.2 or 1.4.3b, I think, and have wondered about it working with the most
- recent versions. I works fine for me on 1.4.3 and I've had reports of it
- working on 2.0x. If someone can confirm the above behavior, it should
- certainly be reported to the proper qualcomm authorities.
-
- Someone recently asked why raw AppleEvents were used. Well, that's
- all I could get to work in those versions. I would like to have one script
- work with, perhaps, several versions of an application. Sosumi. ;-)
-
-
- -- Dave, who is destined to start Eudora scripting again, any day now...
- =========================================================================
- Date: Fri, 16 Sep 1994 09:36:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: Eudora 2.1 and notifying applications...
-
- On 9/15/94, a.h.s. boy wrote:
-
- > "Eudora Notify Controller" hasn't worked for me either. It seems to turn
- > notification "on" for certain apps, but I can't get it to turn it back off.
-
- You have to use the Notify Controller to turn notification off, or use
- ResEdit to delete the eNot resources. The latter should be
- self-explanatory, the former is apparently possible, I haven't tried it but
- it's in the docs.
-
- I think this is brain-dead--notification should be turned off when the app
- quits, but I haven't bugged the much-overworked Steve Dorner about it yet.
- But now that 2.1 is finally out... <grin>
-
- > Has anyone talked to Steve Dorner about this?
-
- Every day. :-| He hasn't had a vacation in three years. :-(
-
- I want Apple Guide help for Eudora. Does anyone know how easy it is to
- write AG help files?
-
- ~ Kiran
-
- --
- 1628 5th Street NW Washington DC 20001 202/483-3373 <groo@netcom.com>
- =========================================================================
- Date: Fri, 16 Sep 1994 09:05:42 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Concannon <frank-concannon@UOKHSC.EDU>
- Subject: QuickTime, PICT, startup screens etc etc
-
- OK
-
- One of the QSAX (osaxen, osaxi...???) in the GTQ Programming Suite is "play
- movie in" which is pretty cool as it appears to open a windiow in the
- Finder to play the movie. Now is there a way to do something similar with a
- PICT file ie open it in a window WITHOUT invoking an application.
-
- Given that I'm C challenged what I'm probably saying is has anyone done
- this work for me. 8-)
-
- Thank you all for responding to my previous post re. QT and AS. The
- Component Manager was connection I had heard mentioned. Anyone care to give
- a BRIEF definition of the "Component Manager" ?
-
- Frank C.
- R&E
- =========================================================================
- Date: Fri, 16 Sep 1994 09:34:46 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Harf <ccmail.kenan.com!steveh@KENAN.COM>
- Subject: Newbie Questions: AppleScript and Serial Communications
-
- What is the best way to use AppleScript to do serial communications? Are
- there some nice, small, scriptable, general purpose telecommunication
- applications available? What about comm toolbox support? Any serial
- comm OSAX available?
- =========================================================================
- Date: Fri, 16 Sep 1994 10:59:45 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: What can I do with something of class TEXT?
-
- >I am trying to manipulate something of type TEXT to look for certain
- >keywords. The keywords will be an entire line, and the text I need to
- >extract will be an entire line. Can anyone suggest an easy way to do this?
- >I am kind of new to AS and can't seem to get any sort of "contents of line
- >x" function to work on a TEXT block....
-
- There is no line object in the basic AppleScript object model. A paragraph,
- however, is the AppleScript equivalent to a HyperCard line (i.e., text ending
- with a return). Therefore you should be able to say something like:
-
- if paragraph 3 of myText contains "<your match text here>" then...
-
-
- Danny Goodman
- =========================================================================
- Date: Fri, 16 Sep 1994 09:09:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: loading script objects and mem problems
-
- >>... and I'm having real
- >>problems with a script app quiting with an error of type 1 or an out of
- >>memory -108 error. I can't figure it out script wise. The problem might
- >>be is that I'm loading a rather large (35K) library, is this my problem -
- >>will I have to split this into a smaller libraries for their specific uses.
- >
- >Try giving the applet more memory (in the usual way for an application,
- >twiddle with the memory assignment in its Get Info box). Many are given
- >more than they need...some are not given enough. Someday, there may be one
- >for which the default 200K is just right.
- >
- > --John
-
- Yes, I've already tried giving it up to 450K (which should do it!). What
- are these memory leaks I've heard about could this be it.
-
- -Preston
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Fri, 16 Sep 1994 09:50:20 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: QuickTime, PICT, startup screens etc etc
-
- >Thank you all for responding to my previous post re. QT and AS. The
- >Component Manager was connection I had heard mentioned. Anyone care to give
- >a BRIEF definition of the "Component Manager" ?
-
- "Components" in this sense are separately compiled pieces of code
- (usually), made available to applications by being placed in the Extensions
- folder (usually, although they can reside in a running application,
- instead). The Component Manager presents the interface between the callers
- and these bits of code.
-
- This was put together for QuickTime...the movie controller thing is usually
- shown and operated by a component, for example.
-
- That's the short form. The 99 pages of chapter 6 of Inside Mac: More
- Macintosh Toolbox is the long form. [And there is a whole volume devoted
- to the QuickTime components alone.]
-
- The code which "does" AppleScript is a component. --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 16 Sep 1994 09:50:24 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Newbie Questions: AppleScript and Serial Communications
-
- > What is the best way to use AppleScript to do serial communications? Are
- > there some nice, small, scriptable, general purpose telecommunication
- > applications available? What about comm toolbox support? Any serial
- > comm OSAX available?
-
- If I did that, I would use SITcomm, from Aladdin (which I have, but don't
- use much).
-
- --john
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 16 Sep 1994 13:19:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Apple Guide
-
- At 8:36 AM 16.9.94, Kiran Wagle wrote:
- >I want Apple Guide help for Eudora. Does anyone know how easy it is to
- >write AG help files?
- >
- >~ Kiran
-
- Kiran --
-
- Talk to Quinn in .au...he wrote the Apple Guide for Anarchie 1.3, and is so
- proud of it he could burst. I haven't been able to see it yet (still
- waiting for 7.5), but he might be able to help...
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Fri, 16 Sep 1994 13:30:05 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: A couple of answers
-
- >Is there a way in AppleScript to tell if a program is running already? Or
- >must I activate it every time to make sure?
-
- Try checking out the OSAX from GTQ Library called "Is Application Running"
-
- >I'm trying to write a script to switch my powerbook 540c from localtalk to
- >ethernet. I've tried simply recording the action but all AppleScript does is
- >open the network control panel for me and then close it again. It ignores my
- >clicks to switch from ethernet to localtalk or vise versa. Any ideas?
-
- Unfortunately, control panels are not scriptable/recordable (at least not yet).
- You can probably bridge the gap with something like KeyQuencher or QuickKeys
- that can record button clicks relative to an open window.
-
- --
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
-
- Sigmund Freud was a cross-dresser. Ever heard of a Freudian slip?
- =========================================================================
- Date: Fri, 16 Sep 1994 13:30:12 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kim-son Tran <ktran@CC.ATINC.COM>
- Subject: Thanks for response & suggestions
-
- Thanks for answers received from a couple of people regarding my problem with
- !DeskPict. Thanks for the suggestions. I've been rather busy lately but I did
- try to change the order of which Quicktime and !Deskpict was loaded. It did not
- work. I'll try to explore this problem further, later today.
-
- I will also keep in mind the suggestion of exploring Decor as an alternative.
- Otherwise, I may just have to save the startup screen as a PICT file and figure
- out someway of changing its id within my script. Thanks for the response and I'd
- love to hear any other suggestions.
-
- --
- Internet: ktran@cc.atinc.com or tk@cc.atinc.com
- AOL: kimsont@aol.com
- eWorld: kimsontran@eworld.com
-
- Sigmund Freud was a cross-dresser. Ever heard of a Freudian slip?
- =========================================================================
- Date: Fri, 16 Sep 1994 12:30:53 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovant@NCOOK.K12.IL.US>
- Subject: Re: "Save As..." in Eudora?
-
- >Friends:
- >
- > Is it possible to script Eudora's "Save As..." (from the File menu,
- >version 1.4.3, though 1.5 beta would be okay)? I would like to set up a
- >script which saves my MACSCRIPT Digests to a specified folder, so that it
- >can be read using EasyView. The Eudora "Save" command doesn't seem to be
- >the same thing.
- >
- > Thanks for all the help!
- > Clint
- >
- >
- > Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- > Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- > Department of Molecular Biology | 609/258-5993
- > Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
-
- Clint,
-
- Off the top of my head, I would have the script grab the text of the
- message into a variable, then use one of the File i/o osaxen to write it to
- a text file, bypassing Eudora altogether.
-
- Hope this is enough of a nudge...
-
- --Tom
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "The city is a place where a small boy, as he walks
- Technology Facilitator through it, may see something that will tell him
- Glen Grove School what he wants to do his whole life."
- Glenview, Illinois --Louis I. Kahn
- E-mail: donovant@ncook.k12.il.us, donovan@covis.nwu.edu
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Fri, 16 Sep 1994 10:56:27 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: What can I do with something of class TEXT?
-
- >AppleScript doesnt "know" about words paragraphs, lines and so on, but
- >Simple Text Exitor (STE) does. You can script STE in order to ask things
- >like
-
- This is fortunatly incorrect.
-
- The AppleScript String class and it synonym Text do know have words,
- paragraphs, characters and text as elements (see page 66 of the AppleScript
- Language Guide):
-
- For example:
-
- get words of "fee fie foe fum"
-
- returns
-
- {"fee", "fie", "foe" "fum"}
-
- likewise
-
- get word 1 of "fee fie foe fum"
-
- works.
-
- But you can't do
-
- set bingo to "fee fie foe fum"
- set word 1 of bingo to "foo"
-
- Kevin "the Language Lawyer" Purcell :-)
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Fri, 16 Sep 1994 14:26:17 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
- Subject: [?] on TCP/IP osax
-
- I just tried out the TCP/IP osax with the Send Mail sample script. It
- worked great.
-
- My question is: Can I include a subject? If I can, how can it be
- incorporated into the Send Mail script.
-
- Thanks,
-
- Kevin
- =========================================================================
- Date: Fri, 16 Sep 1994 11:43:03 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: Localtalk to Ethernet Script
-
- >>I'm trying to write a script to switch my powerbook 540c from localtalk to
- >>ethernet. I've tried simply recording the action but all AppleScript does is
- >>open the network control panel for me and then close it again. It ignores my
- >>clicks to switch from ethernet to localtalk or vise versa. Any ideas?
- >
- >I *think* you'll need help from an outside force, such as "Player" from
- >PreFab Software, or QuicKeys, or Tempo. --John
- >
- Or KeyQuencer, which is a lot cheaper than any of the above. --David
-
- David Lewis Seagate Technology (408) 439-2374 lewis@netcom.com
- =========================================================================
- Date: Fri, 16 Sep 1994 19:35:00 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gateway <Gateway@OUI.COM>
- Organization: Odyssey Ultraware Inc.
- Subject: NDN: MACSCRPT Digest - 14 Sep 1994 to 15 Sep 1994
-
- Sorry. Your message could not be delivered to:
-
- musikTypes,UltraLink (The name was not found at the remote site. Check that
- the name has been entered correctly.)
- =========================================================================
- Date: Fri, 16 Sep 1994 14:59:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: PowerMac Differences
-
- Every once in a while I run into something that scripts seem to do
- differently on different platforms, even thought they are running the same
- version of everything. Now that we have a couple of PowerMac's, I've run into
- some problems with scripts breaking. For instance:
-
- on run
- display dialog "hello"
- tell application "Finder"
- activate
- -- do some stuff
- tell application "Foo" of machine "Bar"
- beep -- actually send some stuff from calling applicatio
- n
- end tell
- end tell
- activate
- display dialog "goodbye"
- end run
-
- Works fine on 680x0. The real application copies files to a server then tells
- an application on the server what was copied over, who sent it etc. When I
- run this script on a 6100, the script will halt at the nested "tell"
- statement and flash the application icon for attention. Once you bring the
- application to the front, it will continue (of course if you arn't there, it
- times out). The fix was to unnest the tell statements, but it was not easy
- to find. When debugging script applications (drop), things don't work quite
- the same from the editor as they do when actually running.
-
- Just though I'd pass this on.
-
- Steve Alex
- =========================================================================
- Date: Fri, 16 Sep 1994 15:38:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: A breakthrough on transportable scripts?
-
- If you've been on this list for a while, a FAQ deals with writting script
- applications on one machine and having it run on another without having to
- recompile the script. I guess the problem comes from the script storing
- aliases to the applications it references somewhere in the compiled code.
- When you run the application on another system, it will ask you each time you
- launch it where application "x" is.
-
- This of course is a pain. Solutions in the past where to ask for the
- location of the application the first time and then store the alias to the
- application in a property and save it in the preferences folder for
- subsequent runs. This works, but is still a pain, especially with a novice
- user.
-
- I must of tried 30 ways to overcome this problem and found one using the
- scriptable finder and some standardization. The standardization was to put
- aliases to applications that would be called in scripts in a known location.
- Since we already standardized on MenuChoice (now part of 7.5), I just put a
- "applications" folder in the Apple Menu Items folder and put aliases to
- frequently used application in the folder. In the script applications I then
- use code like the following to launch applications I need. The code below
- launches MacWritePro.
-
- tell application "Finder"
- set foo to original item of every alias file of |_
- folder "applications" of apple menu items folder |_
- whose creator type is "MWPR"
- set bar to foo as string
- end tell
- launch application bar
-
- -- |_ represents a line continue character
-
- I'll leave the error trapping (two aliases would create a list, etc) up to
- the reader, I'am just trying to get the concept out.
-
- Does anyone have the ISBN number of the book on the Scriptable Finder? It may
- be easier than all this experimenting and guessing.
-
- Steve Alex
- =========================================================================
- Date: Fri, 16 Sep 1994 13:50:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: AppleScript & 7.5
-
- I just installed 7.5 and see that my Finder Scripting Addition is now at
- version 1.2, to answer Lawrence's question. In addition, there are 3 new
- osaxen: AGStart, MonitorDepth & Set Volume. AGStart starts AppleGuide, the
- others are obvious.
-
- The Script Editor is now at version 1.1.1. I'll try to find out what
- changed. Hopefully it's the dictionary bug, but I don't have a clue.
-
- There are a dozen sample scripts included. Their names are:
-
- Find Original from Alias
- Stop File Sharing
- Turn Sound Off
- Turn Sound On
- Start File Sharing
- Add Alias to Apple Menu
- Share a Folder
- Alert When Folder Changes
- Change Monitor to 256
- Change Monitor to B&W
- Hide/Show Folder Sizes
- Synchronize Folders
-
- Finally, since "version" is the Finder Scripting Extension's version,
- "product version" is the system & finder version, which is 7.5.
-
- Jon
-
- PS:
-
- I do my mail from my PowerBook while at work, so I wrote a script to send
- the clipboard from my Quadra to Eudora on my PowerBook.
-
- set theText to the clipboard
- tell application "Eudora" of machine "Office in a box" of zone "Storm Phonenet"
- set the clipboard to theText
- end tell
-
- I use it with OSA Menu. It's damn cool! It could probably be generalized,
- but I don't feel like bothering.
-
- Jon
- =========================================================================
- Date: Fri, 16 Sep 1994 16:38:47 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dean Kirstein <USDDAK@VTVM1.CC.VT.EDU>
- Subject: Digital Signatures (Digisign)
-
- I am trying to use the Digisign utility to have an Applescript automaticly
- sign a file and also "verify" it as well. The Digisign does not appear to be
- scriptable?
-
- Has anyone done any work with the Digisign or digital signatures and
- Applescript?
-
- Virginia Tech User Services Department
- =========================================================================
- Date: Fri, 16 Sep 1994 15:25:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matt Stevens <matt@TRIBE.TRIBE.COM>
- Subject: Need messages
-
- Sorry to waste bandwidth, but I didn't receive the second half of the
- digest for Sept. 14 and 15 and I noticed that one of the topics listed was:
- 18. Localtalk to Ethernet Script
-
- If someone could email me the relevant messages, or digest I'd much
- appreciate it. Thanks!
- --
- matt
-
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- :: ::
- :: Matt Stevens email: matt@tribe.com ::
- :: Online Information Technician phone: 510.814.3980 ::
- :: Tribe Computer Works fax: 510.814.3980 ::
- :: <a href="http://www.tribe.com/HTML/thetribe/matt.html">Matt's Home!</a> ::
- :: ::
- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- =========================================================================
- Date: Fri, 16 Sep 1994 14:52:35 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
- Subject: Variable between apps?
-
- Subject: Time:2:43 PM
- OFFICE MEMO Variable between apps? Date:9/16/94
- Greetings,
- I am having some difficulty transferring data between apps, and I was
- wondering if someone could help.
-
- I have an applet that gathers some info from the user (Name, ph#, building#,
- room#, etc) and stores the responses as a list in a variable called UserData.
- I then want the applet to put this information into a field in a HyperCard
- stack. Seems simple, but I cannot seem to get it to work. I think I just
- have a mental-block on this one thing...
-
- Can someone show me exactly how to get the variable "UserData" from the
- applet "Logger" into a background field named "New Record" in HyperCard stack
- "Respository"? I am an accomplished HC scripter, and a newbie AppleScripter,
- and if I can just get this one thing right, I think I will "get" this whole
- AppleScript deal.
-
- Thanks for the help,
- - Christian
- =========================================================================
- Date: Fri, 16 Sep 1994 19:27:29 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: A breakthrough on transportable scripts?
-
- At 13:38 9/16/94, Steve Alex wrote:
- >Does anyone have the ISBN number of the book on the Scriptable Finder? It may
- >be easier than all this experimenting and guessing.
-
- ISBN 0-201-40910-0
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Fri, 16 Sep 1994 19:27:44 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AppleScript & 7.5
-
- >I just installed 7.5 and see that my Finder Scripting Addition is now at
- >version 1.2, to answer Lawrence's question. In addition, there are 3 new
- >osaxen: AGStart, MonitorDepth & Set Volume. AGStart starts AppleGuide, the
- >others are obvious.
- >
- >The Script Editor is now at version 1.1.1. I'll try to find out what
- >changed. Hopefully it's the dictionary bug, but I don't have a clue.
-
- No...sorry to say the Dictionary Bug is alive and well (if you mean the
- missing headings and/or missing complete content, depending on phase of
- moon). [I got to work on a real "phase of the moon" bug a couple of years
- ago...a program which crashed if asked to draw the moon when it was more
- than 99% full.]
-
- By the way, if you bug the Apple folks about this again, you might include
- mention of the problem of drawing the right end of long Dictionary comment
- lines behind the vertical scroll bar (I have my comment font set to
- *Italic* Geneva 9, which may well be part of the problem).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Sat, 17 Sep 1994 12:25:00 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: VVision images
-
-
- Is there anything in the VideoVision 2.0 package aside from QuikTime 2.0
- which is of any interest to 'non card-holders' as it were? Or are all of
- the other utilities in there only usable by VVision owners?
- =========================================================================
- Date: Sat, 17 Sep 1994 08:15:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
- Subject: Re: "Save As..." in Eudora?
-
- Tom:
-
- Thanks for the tip:
-
- >Date: Fri, 16 Sep 1994 12:30:53 CDT
- >From: Tom Donovan <donovant@NCOOK.K12.IL.US>
- >Subject: Re: "Save As..." in Eudora?
- [...]
- >Off the top of my head, I would have the script grab the text of the
- >message into a variable, then use one of the File i/o osaxen to write it to
- >a text file, bypassing Eudora altogether.
-
- Kiran Wagle <groo@netcom.com> gave me some similar advice via e-mail
- (Kiran also highly recommended Eudora 1.5...or even 2.1).
-
- Here's the answer from the horse's mouth:
-
- >From: sdorner@qualcomm.com (Steve Dorner)
- >Subject: Re: "Save As..." in Eudora AppleScript?
- >
- >Alas, no.
-
- Pithy, but unarguable. But, gee...I thought AppleScript was supposed to
- make life *easier* :-) .
-
- Clint
-
-
- Dr. Clinton C. MacDonald | clint@phoenix.princeton.edu
- Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
- Department of Molecular Biology | 609/258-5993
- Princeton, NJ 08544-1014 | 609/258-1704 (FAX)
- =========================================================================
- Date: Sat, 17 Sep 1994 14:06:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
- Subject: Re: Eudora 2.1 and notifying applications...
-
- At 8:16 AM 15.9.94, Tony McDonald wrote:
- >If the applet is not running and Eudora gets some new mail, it launches the
- >applet and....nothing.
- >
- >The dictionary entry for notice in Eudora 2.1 is
- >notice: Eudora sends this event to notify an application that something
- >happened
- >notice
- > [occurrence mail arrives/mail sent/will connect/has connected] --
- >what happened
- > [messages list] -- of the messages involved
- >
- >Is there something wrong with my applet syntax? (ie I don't mention
- >'occurrence' anywhere). The Eudora notify osax only has an entry for
- >'notify',not 'notice' by the way.
-
- I had the exact same problem. Getting rid of the parameter "theMessages"
- fixes the problem, but then you don't have a list of the new messages. I've
- gone crazy trying to fix this. I did figure out, though, that if you do
-
- on notify(messages)
- display dialog (class of messages)
- end
-
- It returns "scrpt", and not "list" as it should. I don't know if this is a
- bug in the Eudora Notification OSAX or not... I noticed the bizarre fact
- that the OSAX is called "notify", not "notice" as well. That may, in fact,
- be the problem. The author may have simply written an OSAX for simple
- notification, and not notification with parameters... I'll write to him and
- find out.
-
- Steve Dorner replied to my question about exactly what parameters the
- notification sends by quoting the dictionary entry above. That leads me to
- believe that it is, in fact, the OSAX which is not sending along the proper
- parameters... I'll keep you posted.
-
- spud.
-
-
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- a.h.s. boy ---------------------- manifesto overlord, dada typographics
- --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
- spud@access.digex.net ----------- WWW page: http://www.digex.net/~spud
-
-
- mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
- =========================================================================
- Date: Sat, 17 Sep 1994 13:16:11 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Quicktime and AppleScript
-
- John W. Baxter <jwbaxter@OLYMPUS.NET> (et al) wrote:
- >>
- >>Does or does not AppleScript require Quicktime (in some fashion).
- >>I will stop at this point in order to save myself from further humiliation :(
- >
- >No.
- >
- >[But there may have been a time when a pre-release AppleScript required
- >QuickTime in order to have the Component Manager available.]
-
- AppleScript has always shipped with a copy of the component manager 1.5
- inside, so it can install it if it is not already there. AppleScript
- requires nothing besides itself (assuming that you count the AE Manager as
- part of AppleScript).
-
- Of course, if we're talking prerelease, there's all kinds of weird stuff
- that we could get into. ;)
-
- Jon
- =========================================================================
- Date: Sat, 17 Sep 1994 13:16:14 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: AppleScript & 7.5
-
- John W. Baxter <jwbaxter@OLYMPUS.NET> wrote:
- >Jon Pugh <jonpugh@netcom.com> wrote:
- >>I just installed 7.5 and see that my Finder Scripting Addition is now at
- >>version 1.2, to answer Lawrence's question. In addition, there are 3 new
- >>osaxen: AGStart, MonitorDepth & Set Volume. AGStart starts AppleGuide, the
- >>others are obvious.
- >>
- >>The Script Editor is now at version 1.1.1. I'll try to find out what
- >>changed. Hopefully it's the dictionary bug, but I don't have a clue.
- >
- >No...sorry to say the Dictionary Bug is alive and well (if you mean the
- >missing headings and/or missing complete content, depending on phase of
- >moon).
-
- Yeah, I was being optimistic. Jens says he doesn't know why they changed
- the version number from 1.1 to 1.1.1. I took a look at the code and it
- appears that it's just a recompile. They turned off resource names, which
- saved some space, and the globals (stored off of A5) changed their offsets.
- I didn't examine all the code differences, but a spot check indicated that
- no code really changed.
-
- >By the way, if you bug the Apple folks about this again, you might include
- >mention of the problem of drawing the right end of long Dictionary comment
- >lines behind the vertical scroll bar (I have my comment font set to
- >*Italic* Geneva 9, which may well be part of the problem).
-
- I didn't know what you were talking about until I went and looked. You've
- misdiagnosed the problem, I think. Iy has nothing to do with the font or
- style. The real trouble is that the dictionary window doesn't wrap based
- on its width. Instead, it appears to have a fixed wrap point (and my
- default dictionary window is that wide) so that the wrap never changes,
- regardless of how wide the window is. I agree, it's kind of lame though.
-
- Jon
- =========================================================================
- Date: Sat, 17 Sep 1994 13:16:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: AppleScript & Photoshop
-
- Christoph Dohrmann <cd@ZKM.DE> writes:
- >
- >>Thomas Baetzler wrote:
- >>Neglected,
- >>though, since it is virtually useless in helping scripting PhotoShop.
- >>Does anybody have any clue how to automate batch processing with that beast?
- >>My tries have so far been quite unsuccessful :-( Hopefully Adobe will
- >>sometime soon realize the need for OSA support.
- >
- >There is a product out there which is called 'photomatic' from Daystar.
- >It comes as
- >* OSAX (photomatic scripting extension)
- >* Photoshop PlugIn
- >* Photomatic (run-Only) script.
- >and costs roughly $200-250
- >
- >How it works:
- >[snip...]
- >
- >The photomatic script is limited to load-filter-save functionality. If you
- >want to make more sophisticated scripts (eg combining two pictures with a
- >cromakey and stuff) you'll need to deal with the scripting extension (its
- >aete) and the PlugIn's 'doscrit' command. There are a lot of hinches e.g. with
- >modal dialog boxes and stuff... [snip]
-
- Another option is PhotoFlash. It does a lot of this stuff and is
- completely scriptable. Depending on what you do with PhotoShop, you can
- replace a lot of its basic functionality with a fast scriptable program.
-
- Plus, just hitting some of the mail order catalogs is version 2.0 which
- includes a scriptable image cataloger (similar to the $1500 Cumulus
- product). That makes batch processing of images _very_ easy. They've even
- lowered the price. Check it out. I'll post a press release when it
- arrives.
-
- Jon
- =========================================================================
- Date: Sat, 17 Sep 1994 16:45:48 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
- Subject: oops
-
- In case you're wondering why the heck I posted that last message about
- VideoVision to this list, I don't have any idea. I meant to send it to the
- AV list. there's one letter's difference in my addressbook alias between
- the two. I should stop doing all my communicating at 4 a.m., maybe.
- =========================================================================
- Date: Sat, 17 Sep 1994 22:52:50 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Allan R. Crump Jr" <jhhw@CRL.COM>
- Subject: AutoType OSAX
-
- Just a short THANK YOU to jedavis@cs.stanford.edu for writing the
- AutoType OSAX that is on Gaea. With it, I have managed to automate
- just about every un-scriptable application that I have !!
-
- I don't know how I got along without it before !
- Allan C.
- =========================================================================
- Date: Sun, 18 Sep 1994 02:33:50 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: QK 3.0 and AppleScript
-
- Thomas Baetzler wrote:
- >QK3.0 .... Neglected,
- >though, since it is virtually useless in helping scripting PhotoShop.
- >Does anybody have any clue how to automate batch processing with that beast?
- >My tries have so far been quite unsuccessful :-( Hopefully Adobe will
- >sometime soon realize the need for OSA support.
-
- Well, Photoshop 3.0 doesn't seem to add any OSA support, so I wouldn't hold
- my breath. You could use our Player product to drive Photoshop from
- AppleScript (or Frontier). Advantage over QK or QKScript: Player adds
- verbs directly to AppleScript (or UserTalk), so the full power of the
- scripting language is available at every step.
-
- Details on ftp://gaea.kgs.ukans.edu/applescrpt/PRs/PlayerInfo.sit.hqx
-
- I can also e-mail example scripts to anyone who is interested. (Please
- specify AppleScript, Frontier or both.)
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Sun, 18 Sep 1994 02:34:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: Scripting the scriptable Finder
-
- >4) On a similar subject, I have learned a bit of a trick. If you have the
- >French (or probably other) dialect installed, and you switch to French in
- >the formatting menu, you can see the actual AppleEvent commands that are
- >being sent by many of the OSAX.
-
- And if you don't have another dialect, just remove the OSAX from the Scr.
- Additions folder.
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Sun, 18 Sep 1994 02:34:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Scott S. Lawton" <ssl@PREFAB.COM>
- Subject: Re: Localtalk to Ethernet Script
-
- >>I *think* you'll need help from an outside force, such as "Player" from
- >>PreFab Software, or QuicKeys, or Tempo. --John
- >>
- >Or KeyQuencer, which is a lot cheaper than any of the above
-
- Well, for simple tasks, Player Runtime will suffice, and isn't that much*
- more expensive ($25 commercial) than KQ ($10 shareware). Advantage: adds
- verbs to your chosen scripting language vs. sending a doScript in KQ's
- language. For longer scripts, it's probably more "synchronous" than KQ.
-
- * Granted the percentage difference is high, but the absolute difference isn't!
-
- cheers,
-
- -- SSL, PreFab Software
- =========================================================================
- Date: Fri, 16 Sep 1994 16:03:25 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Karl Overland <Karl_Overland%tcm.mn.org@HARVUNXW.BITNET>
- Subject: Re(2): Problem running script
-
- What was that? who are you and why did I receive it?
-
- Karl Overland
- =========================================================================
- Date: Sun, 18 Sep 1994 09:10:49 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: Where can I find the TCP/IP osax?
-
- thanx
- Andreas
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Sun, 18 Sep 1994 09:17:57 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: QuickTime, PICT, startup screens etc etc
-
- > One of the QSAX (osaxen, osaxi...???) in the GTQ
- > Programming Suite is "play movie in" which is pretty cool
- > as it appears to open a windiow in the Finder to play the
- > movie. Now is there a way to do something similar with a
- > PICT file ie open it in a window WITHOUT invoking an
- > application.
-
- Won't QuickTime read JPEG compressed PICTs? Use JPEGView to save
- a PICT in the compressed format. Photoshop will do this too.
-
- Peter
- =========================================================================
- Date: Sun, 18 Sep 1994 09:24:24 CDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: Variable between apps?
-
- > I am having some difficulty transferring data between
- > apps, and I was wondering if someone could help.
-
- The following post is from the HyperCard news group. Kevin Calhoun leads
- the HyperCard development team. Hope it answers some questions.
-
-
- ---------------------------------------------------------------------
-
- From: jkc@apple.com (John Kevin Calhoun)
- [1] Re: Data collection with AppleScript
- Date: Thu Sep 15 17:17:17 EDT 1994
- Organization: Apple Computer Inc, Cupertino, CA
- Lines: 91
-
-
- In article <34nvub$3eb@news.arc.nasa.gov>,
- Christian Jacobsen <jacobsen@george.arc.nasa.gov> wrote:
- >Could someone post, or email me, a sample script that will pass
- >a variable from one application to another? Here is what I have
- >so far:
- >
- >property DefinedApp : ""
- >set DefinedApp to (choose application with prompt "Select Target:")
- >set UserInputVar to "Someday my prints will come..."
- >tell DefinedApp
- > ---- WHAT? How do I tell DefinedApp to set a local variable to the
- >value of UserInputVar?
- >end tell
-
- The best way to pass data between applications, in fact to pass data
- between any two scripts, is by means of parameters, like so:
-
- property DefinedApp : ""
- set DefinedApp to (choose application with prompt "Select Target:")
- set UserInputVar to "Someday my prints will come..."
- tell DefinedApp
- heresTheStuff(UserInputVar)
- end tell
-
- In the example above, I'm passing the value contained by UserInputVar
- as a parameter (in fact the only parameter) to the subroutine
- 'heresTheStuff'. The applet or HyperCard-based application that
- receives the subroutine call can handle it in a script with the
- following handler:
-
- on heresTheStuff(theStuff)
- -- theStuff now contains the value sent as the parameter
- end heresTheStuff
-
- In other words, your script calls the subroutine named "heresTheStuff"
- with the data you want to pass to it in the first parameter to the
- call. Subroutine calls and parameter passing are discussed in the
- _AppleScript Language Guide_ on pages 235-239.
-
- You can also use HyperCard's global variables to pass data between
- scripts, but they are best used only when you need to store textual
- data between chains of script execution. The following script
- stores the value contained by UserInputVar in a HyperCard global
- called ReceiveVar. Note the use of quotation marks in the reference
- to the variable; they're used here because, to AppleScript, HyperCard
- globals are application objects, not language elements, and they
- must therefore be specified by the means AppleScript provides for
- application objects, in this case by name. From AppleScript, you
- should think of HyperCard globals as fields that lack a visual
- manifestation, i.e. named containers you can't see. (BTW, Chapter 5
- of the _AppleScript Language Guide_ is all about objects and
- references.)
-
- property DefinedApp : ""
- set DefinedApp to (choose application with prompt "Select Target:")
- set UserInputVar to "Someday my prints will come..."
- tell DefinedApp
- copy UserInputVar to variable "ReceiveVar"
- end tell
-
- You can then examine the data placed in ReceiveVar in a HyperTalk
- script, as follows:
-
- on doSomethingInHT
- -- do something with ReceiveVar
- global ReceiveVar
- answer ReceiveVar
- end doSomethingInHT
-
- or in AppleScript, as follows:
-
- on doSomethingInAS
- -- do something with ReceiveVar
- display dialog variable "ReceiveVar"
- end doSomethingInAS
-
- Finally, you could transfer data between your script and your HyperCard-
- based application by putting the data into a HyperCard field, like so:
-
- property DefinedApp : ""
- set DefinedApp to (choose application with prompt "Select Target:")
- set UserInputVar to "Someday my prints will come..."
- tell DefinedApp
- copy UserInputVar to field 1 -- field by number
- copy UserInputVar to field "Fred" -- field by name
- copy UserInputVar to field id 127 -- field by id
- end tell
-
- Kevin Calhoun
- jkc@apple.com
- End
- =========================================================================
- Date: Sun, 18 Sep 1994 17:35:24 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: How can I strip trailing return/blank lines from a string
-
- I have tried various ways to strip trailing returns/blank lines from a
- string x, usually along the lines of:
-
- while last paragraph of x is ""
- set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x
- end while
-
- I think that's how in went, I then get erros of can't get last paragraph os
- and then the lines of the script in separate speech brackets. Adding set
- AppleScript's text item delimiters to ... or as text as string etc doesn't
- help. I've tried various other things but none of them work.
-
- Any replies appreciated, Neil.
-
- Neil Christie |Voice/Fax: 0131 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Sun, 18 Sep 1994 17:35:58 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Neil Christie <neil@CHRISTIE.DEMON.CO.UK>
- Subject: How can I tell FileMaker Pro to tell my app to do s'thing
-
- Sorry if this is simple but none of the examples that came with FileMaker
- Pro 2.0 or those on gaea seem to cover this. For example if I save a
- script:
-
- on foo()
- display dialog "Warning Text" buttons "Ok" default button "Ok" with icon note
- end foo
-
- as stay open with a name of "Test app" and launch it from the desktop then
- create a separate script with the text: tell application "Test app" to
- foo()
-
- then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
- script text box doesn't work nor doest playing with the pop-up menu above.
- Do I have to define the type of apple event?
-
- Any help greatky appreciated, Neil.
-
- Neil Christie |Voice/Fax: 0131 229 6507
- 14 West Castle Road |E-Mail: Neil@christie.demon.co.uk
- Edinburgh |-------------------------------------
- EH10 5AU |Apple Macintosh Centris 660AV 8/230 CD.
- Scotland |System 7.1, running PPP on a 14.4K modem
- =========================================================================
- Date: Mon, 19 Sep 1994 09:30:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Digital Signatures (Digisign)
-
- Dean Kirstein <USDDAK@VTVM1.CC.VT.EDU> writes:
-
- >I am trying to use the Digisign utility to have an Applescript automaticly
- >sign a file and also "verify" it as well. The Digisign does not appear to be
- >scriptable?
-
- It wouldn't help you if it were. DigiSign doesn't sign things, it's only for
- creating and approving signers (which are what you actually use to sign things).
- There are system calls available to any AOCE-aware application, for actually
- using signers to sign things, and verifying signatures. When you drop a file
- on a signer to sign it, the calls are being done by the Finder.
-
- >Has anyone done any work with the Digisign or digital signatures and
- >Applescript?
-
- I have a couple of HyperCard externals that do signing and verification.
- They represent the signature as a hex string (about 2.5K in size for my own
- signer). If there's enough interest, I guess I could release these...
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 19 Sep 1994 10:48:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Localtalk to Ethernet Script
-
- Preston Holmes <pholmes@UCSD.EDU> writes:
-
- >I'm pretty sure that most control panels are not recordable or even
- >scriptable.
-
- Correct. There are *NO* scriptable control panels. This is because they
- do not have their own process context, but run within the Finder's context.
- In order for them to be scriptable, they would have to install AppleEvent
- handlers into the Finder's context. This might be OK as long as the control
- panel was open, but what do you do when it's closed?
-
- > The exception being the 'views' control panel.
-
- It's not really an exception, because it isn't a real control panel. Open
- it with ResEdit: do you see any code?
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Mon, 19 Sep 1994 15:13:16 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Script Tools
-
- I was having a go with the Script Tools (1.3) package, in particular the
- Regular Expressions part. I tried the example in the docs, which came up
- with a syntax error.
-
- set pattern to compile regular expression "This (.*) test"
- substitute regular expression pattern of "This is a test" with "---\1--"
-
- When I put an extra backslash in the replacement pattern to get it to work,
- Script Editor always crashes. What gives?
-
- BTW, I'm not very familiar with grep, so is this the right syntax for
- replacing a CR in a var with "<P>"?
-
- set pattern to compile regular expression "\\r"
- set var 2 to substitute regular expression pattern of var1 with "<p>"
-
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Sun, 18 Sep 1994 23:55:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: MACSCRPT Digest - 15 Sep 1994 to 16 Sep 1994
-
- >>>>> "JBaxter" writes:
-
- >> ... and I'm having real problems with a script app quiting with
- >> an error of type 1 or an out of memory -108 error. I can't
- >> figure it out script wise. The problem might be is that I'm
- >> loading a rather large (35K) library, is this my problem - will
- >> I have to split this into a smaller libraries for their
- >> specific uses.
-
- JBaxter> Try giving the applet more memory (in the usual way for
- JBaxter> an application, twiddle with the memory assignment in its
- JBaxter> Get Info box). Many are given more than they need...some
- JBaxter> are not given enough. Someday, there may be one for
- JBaxter> which the default 200K is just right.
-
- This was what i was referring to re the memory leakage dangers. For
- some reason applets are very prone to breaking their heap wide open.
- Anyone out there know why?
-
- Jason
-
- --
- Are you trying to say waffles are | Jason Frankovitz
- diuretics, or that consuming diuretics | Bloomington, IN
- makes you waffle? | jfrankov@indiana.edu
- =========================================================================
- Date: Sun, 18 Sep 1994 23:35:11 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: Re: MACSCRPT Digest - 15 Sep 1994 to 16 Sep 1994
-
- >>>>>> "JBaxter" writes:
- >
- > >> ... and I'm having real problems with a script app quiting with
- > >> an error of type 1 or an out of memory -108 error. I can't
- > >> figure it out script wise. The problem might be is that I'm
- > >> loading a rather large (35K) library, is this my problem - will
- > >> I have to split this into a smaller libraries for their
- > >> specific uses.
- >
- > JBaxter> Try giving the applet more memory (in the usual way for
- > JBaxter> an application, twiddle with the memory assignment in its
- > JBaxter> Get Info box). Many are given more than they need...some
- > JBaxter> are not given enough. Someday, there may be one for
- > JBaxter> which the default 200K is just right.
- >
- >This was what i was referring to re the memory leakage dangers. For
- >some reason applets are very prone to breaking their heap wide open.
- >Anyone out there know why?
- >
- >Jason
-
-
-
- Yes PLEASE, I tried JBaxter's advice to no avail. I have not been able to
- get the store script command to work reliably with storing even relatively
- small libraries (only properties) The script starts storing the object
- takes awhile then returns and error -108, but not always (seems to be when
- much of the object has been changed). Although a crude tool, the "about
- this mac" window shows no climbing mem usage. I need load and store script
- to share properties between two scripts but keep running into this BUG. Is
- anyone else having this much trouble with this???
-
- BTW the Error seems to be coming from the applescript system not the finder
- The error is in saving changes to the script in which the store
- script command resides, not the script being stored.
-
- I have no idea how else to share properties between scripts!!!
-
- Thanks for any help and sorry for the public frustrations...
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Mon, 19 Sep 1994 08:49:43 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Dr. Michael Bach" <bach@SUN1.RUF.UNI-FREIBURG.DE>
- Subject: Re: How can I tell FileMaker Pro to tell my app to do s'thing
-
- Dear colleagues:
-
- >Sorry if this is simple but none of the examples that came with FileMaker
- >Pro 2.0 or those on gaea seem to cover this. For example if I save a
- >script:
- >
- >on foo()
- >display dialog "Warning Text" buttons "Ok" default button "Ok" with icon note
- >end foo
- >
- >as stay open with a name of "Test app" and launch it from the desktop then
- >create a separate script with the text: tell application "Test app" to
- >foo()
- >
- >then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
- >script text box doesn't work nor doest playing with the pop-up menu above.
- >Do I have to define the type of apple event?
-
- Since I had this very problem and with help from Marco Strehler
- <strehler@FVMED.UNIZH.CH> got it solved, I'll post it to the group.
- You need to write your event handlers in the generic way like:
-
- on <<event FMPRmyev>> theParameter
- --do something with the supplied parameters, like:
- activate
- display dialog theParamter as text
- end
-
- The "<<" are a single character and have to be entered as option-Q (on my
- keyboard). The program is saved as "stay open" and run.
-
- In filemaker you make a script sending "other" events (if that's what its
- called in English), giving a type like "FMPR" and event ID "myev" to fit
- the example above. The parameter can come from a field or from the text in
- the script dialog in Filemaker. Both class and ID are arbitrary, but it may
- make sense to use the application signature as class.
-
- There does not seem to be a way to send lists or a number of parameters.
-
- Greetings, Michael.
-
- Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
- D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
- =========================================================================
- Date: Mon, 19 Sep 1994 08:11:33 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Bedford <billb@MOUSA.DEMON.CO.UK>
- Subject: Timing Problems
-
- For a first attempt at scripting I have started to write three scripts that
- I can use to connect with my dialup PPP account. I have found some problems
- which I can't solve.
-
- The first script dails my account sends mail with Eudora, receives mail
- with AddMail, receives News using MacSlurp, and writes an entry into a log,
- so I know how much the call has cost.
-
- At the moment I have a dialog box to make the script wait until MacSlurp
- finishes. Is there a neater way of writing a wait.....until loop?
- Ideally I would like to use an AE from MacSlurp to start the closedown sequence.
- MacSlurp is AE aware but not scriptable.
-
- The second project involves two scripts one to dial up and open Anarchie or
- MacWeb and the other to close everything down and record the time the line
- was open. Is there any way that I can store a time from the first script so
- that the second script can use it?
- I have to use two scripts because the dialogue boxes are modal
-
- Thanks in advance
-
-
- ------------------------------------------------------------------------
- Bill Bedford Designer of Photo-Etches
- billb@mousa.demon.co.uk
- +44 9505 327
-
- Living on a island gives the world a different perspective
- ------------------------------------------------------------------------
- =========================================================================
- Date: Mon, 19 Sep 1994 10:09:59 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Disabling cancel (cmd-.) possible?
-
- Is there a way to temporarily disable canceling the execution of a script?
- There is a point in a script for a very brief period of time (less than two
- seconds) that could cause loss of data for the user if they cancelled. It's
- not likely they'll cancel at that point but it is possible.
-
- Thanks,
-
- Greg Francis
-
- __________________________________________________________________________
- Greg Francis | STEP/Star Schools Project
- Research and Development | Educational Service District 101, Spokane WA
- Technical Support Staff | Bringing the best in K-12 distance education
- gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
- =========================================================================
- Date: Mon, 19 Sep 1994 12:34:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Disabling cancel (cmd-.) possible?
-
- >Is there a way to temporarily disable canceling the execution of a script?
- >There is a point in a script for a very brief period of time (less than two
- >seconds) that could cause loss of data for the user if they cancelled. It's
- >not likely they'll cancel at that point but it is possible.
-
- I can't think of any. If you can't redo the script so that the data loss
- is impossible, you may have to move the dangerous operations into a
- Scripting Addition or a small application, where you would have more
- control.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Mon, 19 Sep 1994 18:07:51 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Limon <MALimon@AOL.COM>
- Subject: Re: my own question
-
- >>Is the only way to have an applet in the startup items folder constantly
- checking the time & date or what?<<
-
- I like to use QuicKeys to time launch an applet.
- =========================================================================
- Date: Mon, 19 Sep 1994 19:08:27 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shawn Connelly <sconnelly@QM.PRUBANK.COM>
- Subject: Checking a Frontier table
-
- Checking a Frontier table
- I would like to find a script that when pass a table address and a value,
- checks to see if the value is equal to any element of the table. I'm sure
- someone has had to write this, and I don't have the time, and even want to
- re-invent the wheel.
-
- Thanks.
-
- ------------------------------------------------------------------------
- Shawn Connelly | Computers are useless. They
- The Prudential Bank | can only give you answers.
- Two Concourse Pkwy, #400 | - Pablo Picasso
- Atlanta, GA 30328 |
- Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
- =========================================================================
- Date: Tue, 20 Sep 1994 00:34:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Atul Butte <Atul_Butte@BROWN.EDU>
- Subject: ANNOUNCING TCP/IP SCRIPTING ADDITION 1.1 (LONG)
-
- I am now sending a new version of the TCP/IP Scripting Addition (version
- 1.1) to the gaea.kgs.ukans.edu AppleScript archives. I think Fred Terry
- will post a message when it becomes accessible.
-
- You will find a 750K self-enclosed archive containing the TCP/IP Scripting
- Addition version 1.1, a text document listing the changes from the 1.0
- version, a text document detailing Licensing Information, two Word
- documents containing Licensing Agreements (one for individuals, one for
- site licenses), nine sample scripts (and a text document describing them),
- and a Word document describing the Programming Instructions.
-
- Please note that this release is intended for personal use only. Using any
- of the new commands or options in version 1.1 will display a reminder to
- register yourself as a user. Information on registering the Scripting
- Addition is described at the end of this message. Users who have already
- sent licensing fees or purchase orders will be getting this new version
- (without the reminder messages) plus printed documentation in a Priority
- Mail package.
-
- TCP/IP Scripting Addition version 1.1 is the latest version of an
- award-winning AppleScript scripting addition (first place in the "Best
- Hack" category in the Everyday AppleScript Programming Competition). This
- scripting addition (or osax) allows you to write scripts using MacTCP
- commands in AppleScript. Potential uses of this include sending e-mail or
- files through a script, checking if users are logged on (via Finger),
- automating FTP transfers, automating Gopher and NetNews, writing scripts to
- check whether machines are up, UNIX lpr, and quickly writing many other
- TCP/IP client-server programs. When combined with FaceSpan, the potential
- for rapid implementation of client-server applications is enormous.
-
- The TCP/IP Scripting Addition works with AppleScript 1.0 or better, MacTCP
- 2.0.4, and either FrontMost or FaceSpan.
-
- There have been several important changes since the 1.0 version -- you will
- need to recompile scripts which have been saved as text files. In addition
- to several bug fixes, most of the commands have new features:
-
- 1. TCP READ can now return incoming data as any particular type, not just text.
- 2. TCP WRITE can now send data of any type, not just text.
- 3. TCP RECEIVE can now receive data or resource forks, or an entire file as
- MacBinary. It also supports receiving open files (file reference numbers
- from OPEN FOR ACCESS). It can also append incoming data onto an existing
- file.
- 4. TCP SEND can now send data or resource forks, or an entire file as
- MacBinary. It also supports sending open files (file reference numbers
- from OPEN FOR ACCESS).
- 5. TCP SHUTDOWN is a new command that lets you close either direction in
- the full-duplex TCP/IP connection.
- 6. TCP DEBUG DUMP BUFFER is a new command that lets you peek at the
- characters waiting to be read without removing them from the stream.
- 7. TCP STATUS now returns connection codes that better detail half-closed
- connections.
- 8. TCP CLOSE is now done asynchronously, so that scripts can connect to TCP
- servers on the same Macintosh.
- 9. TCP CONNECT now supports connecting from a specified port, and now works
- asynchronously for self-send support.
- 10. TCP NAME TO ADDRESS is a new command that takes a hostname and returns
- an IP address.
- 11. TCP ADDRESS TO NAME is a new command that takes an IP address and
- returns a hostname.
-
- (plus other new features)
-
- There are nine sample programs included with this 1.1 release of the TCP/IP
- Scripting Addition. You may look at these sample programs and write your
- own based on these. Most of the sample programs (all but the FrontMost
- programs) are provided as both compiled scripts and text files (to ease
- compatibility with AppleScript 1.0), but all the scripts have really only
- been tested with AppleScript 1.1.
-
- 1. Drag and Drop FTP
-
- Launch this Script Editor application by itself, then enter the destination
- host, your account name on that host, the destination directory on that
- host in which to store the files, then the type of file transfer you would
- like (MacBinary, Text, or raw Binary). After the application quits, drag
- any files onto the application. Enter your password and the files will be
- transferred to the destination host using the FTP protocol.
-
- 2. Run and Get FTP
-
- Launch this Script Editor application by itself and enter the FTP host,
- your user-id on that host, the source directory on that host in which to
- find the files, the type of file transfer you would like (MacBinary, Text,
- or raw Binary), and into which directory on your Macintosh you would like
- the files downloaded. Finally, enter your password and the files will be
- transferred from the destination host using the FTP protocol.
-
- 3. FTP Send Client
-
- This application is similar to the Script Editor Drag and Drop FTP
- described above, except it uses a FrontMost (i.e. FaceSpan) interface to
- set the file transfer parameters and it uses a progress bar to detail its
- progress.
-
- 4. FTP Receive Client
-
- This application is similar to the Script Editor Run and Get FTP described
- above, except it uses a FrontMost (i.e. FaceSpan) interface to set the file
- transfer parameters and it uses a progress bar to detail its progress. Use
- this and the previous sample script as backup and restore programs!
-
- 5. Baby Telnet
-
- Run this Script Editor script and enter the hostname to which you would
- like to Telnet. Then enter the type of terminal you would like to emulate
- (I suggest sticking to VT100, but if you change this, enter it in all
- caps). After a few moments (during which the script handles Telnet Options
- Negotiations), Scriptable Text Editor will open and you will be presented
- with the login message. This script will prompt you with a ">" prompt. Type
- your text after the ">" and press return at the end of the line. Everything
- the host sends to you will be surrounded by bracket characters ("[" and
- "]").
-
- 6. Finger
-
- Launch this application, then enter an internet host name and account to
- check. This program will use the Finger protocol to get more information
- about that account (like last login time, office phone number, etc). The
- results are placed in a new Scriptable Text Editor window.
-
- 6. FrontMost Finger Client
-
- This program is similar to the previous one, but uses a FrontMost interface.
-
- 7. Send Mail
-
- Run this script, then enter your e-mail host, account, and a subject line
- when prompted. This program will send a simple message to that account,
- using the SMTP protocol.
-
- 8. Gopher Server
-
- Drag this application to a folder containing text files, then launch the
- application. The text files in its folder (and those in any subfolder) will
- be made available through Gopher. Use Gopher to connect to your Macintosh
- at port 70 (the default for Gopher) and start browsing.
-
- 9. Gopher Client
-
- Gopher Client is a Gopher browser (like TurboGopher, Sextant, etc). For
- full use, Gopher Client requires Scriptable Text Editor, JPEG View, the
- TCP/IP Scripting Addition (osax). Gopher Client is a basic implementation
- of a gopher client (just like TurboGopher). However, it currently doesn't
- support searching, Mac files, sound files, movies, or anything other than
- folders, text files, and GIF files. The text files you read are limited to
- 32K (because the Gopher Client uses Scriptable Text Editor to show you the
- text). This limitation may not be present if you modify it to use another
- scriptable word processor.
-
-
- If you find any problems with the Scripting Addition or its documentation,
- or if you have suggestions for future versions, please let me know.
-
- Please take the time to read and follow the Licensing Information provided
- with the package (I don't think it would be appropriate for me to mention
- the various options and fees directly in this forum). If you use the
- TCP/IP Scripting Addition for your own personal use, the licensing fee is
- FREE. Otherwise, if you will be using the Scripting Addition for ANY
- business, company, or university related task, or if you wish to distribute
- the Scripting Addition, please read the Licensing Information document for
- more details. If you pay a licensing fee, I will send you the latest
- version (without the registration reminders) and printed documentation.
-
- Thank you very much for your continued support!
-
-
- -- Atul
-
- DISCLAIMER: This package has nothing to do with Brown University or the
- Brown University School of Medicine.
- +------------------------------------------------------------------
- | Atul Butte (MD '95)
- | Brown University School of Medicine
- |
- | atul_butte@brown.edu
- =========================================================================
- Date: Tue, 20 Sep 1994 08:49:26 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Scripts as direct objects - an AS oddity
-
- Hi folks,
-
- I'm just surfacing for air after completing the work to make
- ScriptWizard version 1.1 (forthcoming - this is not an "announcement")
- scriptable. It's something I noticed for the second time during this
- project (it affected AgB too) and this note may save some time for
- other developers (alternatively, you might be able to tell me what bit
- of the AS documentation I missed the official explanation in :-) ).
-
-
- Scripts as direct objects
- -------------------------
-
- If a scriptable application wants to receive a script as the direct
- object of an Apple event message, the behavior of AppleScript might
- not be exactly what one expected. For instance, if the name of the
- AE message is "do to script" then this syntax seems OK:
-
- tell application "thingy"
- do to script script_object -- script_object is a script object
- end tell
-
- But the above won't work: AppleScript will try to pass the "do to
- script" message to the script_object directly, and won't dispatch it to
- the application. So the script will fail with a message like:
- script <<script_object>> didn't understand "do to script"
- It probably would work if the script object was being passed
- as another named parameter of the Apple event, but not if the script
- object is supposed to be passed as the direct object.
-
- It _does_ work if you modify the syntax by adding a "script" keyword
- before the reference to the script object, like so:
-
- tell application "thingy"
- do to script script script_object -- note the extra "script"
- end tell
-
- Ugly! But it works by creating an object specifier that contains the
- script object, and passing that as the direct object of the Apple event
- message, which is correctly dispatched to the target application. The
- object specifier looks like this:
-
- key form: absolute position
- want type: script
- key data: the script object
- container: null
-
- Which means that the application that receives the message must be
- able to cope with object specifiers that contain actual data, as well
- as ospecs that describe application-domain objects.
-
- Advanced note: There is an execute-time "mode flag" in AppleScript 1.1
- that should block the above-described dispatching behavior but since
- the Apple Script Editor doesn't use it, our ScriptWizard can't use it
- either (I think the flag's kOSAModeDontDispatchToDirectObject).
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Tue, 20 Sep 1994 05:42:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re> How can I strip trailing return/blank lines from a string
-
- ------ From: Macintosh Scripting Systems, Sun, Sep 18, 1994 ------
- Neil Christie wrote
- > I have tried various ways to strip trailing returns/blank lines from a
- > string x, usually along the lines of:
-
- > while last paragraph of x is ""
- > set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x
- > end while
-
- > I think that's how in went, I then get erros of can't get last paragraph os
- > and then the lines of the script in separate speech brackets. Adding set
- > AppleScript's text item delimiters to ... or as text as string etc doesn't
- > help. I've tried various other things but none of them work.
-
- I'am still not straight on text item delimiters, but I got this to work. Your
- major problem is you forgot to tell it to save para 1 thru x " as string"
-
- set origDelim to AppleScript's text item delimiters
- set AppleScript's text item delimiters to {return}
- set x to "line one and a" & return & "line two and a" & return & |_
- "" & return & "line three" & return & return
- display dialog x & (count paragraphs in x)
- repeat while last paragraph of x is ""
- set x to paragraphs 1 thru ((count paragraphs in x) - 1) of x as string
- end repeat
- display dialog x & (count paragraphs in x)
- set AppleScript's text item delimiters to origDelim
-
- Steve Alex
- =========================================================================
- Date: Tue, 20 Sep 1994 09:20:31 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Price <price@LL.MIT.EDU>
- Subject: unsubscribe
-
- Please send info on how to unsubscribe to this group
- =========================================================================
- Date: Tue, 20 Sep 1994 07:01:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Disabling cancel (cmd-.) possible?
-
- I don't think there's a perfect solution for disabling Command/., but here
- is an idea. Use a TRY/ON ERROR block to ignore Command/. (userCanceledErr)
- and place that within a while loop.
-
- set stillRunning to true
- repeat while strillRunning = true
- try
- -- do length uninteruptable operation
- set stillRunning to false
- on error
- end try
- end repeat
-
- This way, single Command/. keys will be caught and ignored. The problem is
- that quick multiple Command/. keys may get noticed by AS.
-
- I checked this out on my system and it works quite well.
-
- Just a thought
- -Mark
- =========================================================================
- Date: Tue, 20 Sep 1994 09:07:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: ANNOUNCING TCP/IP SCRIPTING ADDITION 1.1 (LONG)
- In-Reply-To: Your message of "Tue, 20 Sep 94 00:34:56 CDT"
-
- >I am now sending a new version of the TCP/IP Scripting Addition (version
- >1.1) to the gaea.kgs.ukans.edu AppleScript archives. I think Fred Terry
- >will post a message when it becomes accessible.
-
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
-
- Have fun.
-
- pf
- =========================================================================
- Date: Tue, 20 Sep 1994 06:45:01 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Wiederspan <jonwd@TJP.WASHINGTON.EDU>
- Subject: [1]unsubscribe
-
- [1]unsubscribe 9/20/94
-
- Instructions for the Mailing List UWWeb-l
-
- This mailing list is for U of W users only to discuss Web development
- on campus. I anticipate discussion along the lines of the following:
- - Campus or departmental policies for Web use and development
- - Announcement of campus sites or services
- - Requests for help from on-campus personnel
- - Discussion of potential cooperative efforts around campus for
- non-specific
- information (like local restaurants, events, jogging trails, etc.), and
- - Reports of problems encountered (such as security problems)
- that may affect other groups on campus.
-
- "On campus" should loosely refer to any of the many sites involved in the
- University of Washington (e.g., Harboview).
-
- The mailserver is a Macintosh running MailShare. MailShare is
- set so that messages sent to the discussion group appear to
- each member of the group as if sent from the author, *not* the mailing list.
- This is a little different from most lists, but should prevent the
- proliferation
- of side comments that affects many groups. I hope we can keep this list
- running
- with a good ratio of useful content to 'noise'.
-
- *********** To Post a Message ****************
- Messages for the list should be sent to: UWWeb-l@rashoman.tjp.washington.edu
-
- *********** To Reply to a Posted Message *****
- All messages will be return-addressed to the original poster, not to the
- list.
- To reply to the list, remember to change the address back to:
- UWWeb-l@rashoman.tjp.washington.edu
-
- *********** To Unsubscribe *******************
- Send an e-mail message to: UWWeb-request@rashoman.tjp.washington.edu
- Subject: Unsubscribe
- Include your name in the body of the message.
- **NOTE** The Subject line *must* contain the
- word "Unsubscribe" or the mail will not be filed properly.
-
- *********** More Information *****************
- Questions regarding the operation of this list should
- be directed to "UWWeb-request@rashoman.tjp.washington.edu"
- =========================================================================
- Date: Tue, 20 Sep 1994 13:40:23 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: Disabling cancel (cmd-.) possible? [A]
-
- >Is there a way to temporarily disable canceling the execution of a >script?
- >There is a point in a script for a very brief period of time (less than >two
- seconds) that could cause loss of data for the user if they >cancelled.It's
- not likely they'll cancel at that point but it is possible.
-
- To catch it you can use a "TRY"-"ON ERROR" Handler. The arguments in the ON
- ERROR line can help you to locate the interupted script part.
-
- Andreas
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Tue, 20 Sep 1994 10:01:24 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Re: Checking a Frontier tabl
-
- Reply to: RE>Checking a Frontier table
- >I would like to find a script that when pass a table address and a value,
- >checks to see if the value is equal to any element of the table. I'm sure
- >someone has had to write this, and I don't have the time, and even want
- >to re-invent the wheel.
- >
- > Thanks.
- > Shawn Connelly
-
-
- The "defined" verb does exactly what you want. It takes one argument:
- the address whose existance you want to confirm.
-
- --Richard Petty
-
- +-------------------------------------------------------------------------+
- | Motorola rwvr90@email.sps.mot.com |
- | OE110 |
- | 6501 West William Cannon Drive Voice: (512) 891-2890 |
- | Austin, Texas U.S.A. Fax: (512) 891-3879 |
- +-------------------------------------------------------------------------+
- =========================================================================
- Date: Tue, 20 Sep 1994 09:33:03 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Harf <ccmail.kenan.com!steveh@KENAN.COM>
- Subject: Using XCMDs with AppleScript
-
- I downloaded from a local bulletin board a copy of "XCMD OSAX" version
- 1.0 a11 (dated July 8,1993) with some sparse documentation. Is a more
- recent version available? Where can I get more information about "XCMD
- OSAX"? What have people thought of this tool? Apparently this osax from
- Apple allows some XCMDs to be used directly with AppleScript. I was
- thinking of trying the Comm Toolbox XCMDs (also from Apple) with
- AppleScript. Any thoughts, suggestions?
-
- - Steve Harf
- =========================================================================
- Date: Tue, 20 Sep 1994 12:13:56 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
- Subject: Re: How can I tell FileMaker Pro to tell my app to do s'thing
-
- >Sorry if this is simple but none of the examples that came with FileMaker
- >Pro 2.0 or those on gaea seem to cover this. For example if I save a
- >script:
- >
- >on foo()
- >display dialog "Warning Text" buttons "Ok" default button "Ok" with icon no=
- te
- >end foo
- >
- >as stay open with a name of "Test app" and launch it from the desktop then
- >create a separate script with the text: tell application "Test app" to
- >foo()
- >
- >then foo is run. How do I do this from FileMaker Pro 2.0 entering it in the
- >script text box doesn't work nor doest playing with the pop-up menu above.
- >Do I have to define the type of apple event?
- >
-
- 1. Upgrade to Filemaker 2.1 (v2 or v3 preferably)
-
- 2. In Filemaker make a script which sends an applevent. Select other.
- Specify event class (I use FMPX) and a four letter event ID.
-
- 3. In applescript add the following to your script
-
- on =ABevent FMPXSPEC=BB
- foo()
- end =ABevent FMPXSPEC=BB
-
- on foo()
- ...
- end foo
-
- where SPEC is a sample event ID and =AB is option-\ and =BB is option-shift-=
- \.
-
- That should do it.
-
- Mark Hadfield
- hadfield@sickkids.on.ca
- The Hosptial For Sick Children
- =========================================================================
- Date: Tue, 20 Sep 1994 17:15:09 --100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stefania Castellani <Stefania.Castellani@XEROX.FR>
- Subject: problems with Script Wizard 1.0
-
- Hi everybody,
-
- I was starting to use Script Wizard 1.0, and that is what's happened.....
-
- I opened a script, which is actually an application, with Script Wizard 1.0.
- I made some changes (not very dangerous, I thought...) closing then the script.
-
- After that I was not able anymore to reopen the script neither
- with Script Wizard or Script Editor.
-
- The first returned me the following error message:
- "I cannot open "the file" because of a program error"
- The second the following error message:
- "Could not read the file because the required resources were not found".
-
- And apparently one of them changed the size of the script.
-
- Moreover I am using an Hypercard interface that calls this script, but when
- I try to do it I have a message like "resources not found".
-
- A disaster....
- Fortunally I have a safe copy of this script and of the Hypercard application,
- but I should like to understand what's happened to avoid such a situation in
- the future.
-
- Any ideas?
-
- Thanks in advance
-
- Stefania
- =========================================================================
- Date: Tue, 20 Sep 1994 11:17:53 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Scripts as direct objects - an AS oddity
-
- >AppleScript will try to pass the "do to
- >script" message to the script_object directly, and won't dispatch it to
- >the application.
-
- I'm going over the QuarkXpress scripting docs, and I see that they claim to
- be able to handle this. The example they provide is:
-
- script theRealScript
- tell app "QuarkXpress"
- -- script statements
- end tell
- end script
-
- tell app "QuarkXpress"
- do script (theRealScript)
- end tell
-
- The claim is that the script "is processed completely within the
- application." Is that what you're trying to do? Haven't tested it yet.
-
- Danny
- =========================================================================
- Date: Tue, 20 Sep 1994 10:47:25 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
- Subject: Re: Checking a Frontier tabl
-
- Reply to: RE>Checking a Frontier table
- >>I would like to find a script that when pass a table address and a value,
- >>checks to see if the value is equal to any element of the table. I'm sure
- >>someone has had to write this, and I don't have the time, and even want
- >>to re-invent the wheel.
- >>
- >> Thanks.
- >> Shawn Connelly
- >
- >
- > The "defined" verb does exactly what you want. It takes one argument:
- >the address whose existance you want to confirm.
- >
- >--Richard Petty
-
- MY MISTAKE!!! I misunderstood your question!
-
- You'll need to write this yourself. Of this I'm sure. The nice thing is,
- it's a rather trivial script.
-
-
- on TableContains (TableToTest, TestValue) {
- local (TableIndex);
- for TableIndex = 1 to sizeOf (TableToTest^) {
- if TableToTest^[TableIndex] == TestValue {
- return (true)}};
- return (false)};
-
- dialog.alert (TableContains (@root.newsTable, "Mark"))
-
-
- This can be made more robust, of course. I included the calling
- statement (dialog.notify) to show it being used.
-
- Sorry for the gaff...
-
- --Richard Petty
- =========================================================================
- Date: Tue, 20 Sep 1994 09:05:56 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Using AppleScript text delimiters
-
- I have noticed that I don''t have quite the control over text delimiters as
- I would like. I am essentiall trying to do something a bit like strtok().
-
- For example, I am parsing strings like the following:
-
- set oldDelimiters to delimiters of AppleScript to " "
- set AppleScript's delimiters to " "
- set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- get words of s
- set AppleScript's delimiters to oldDelimiters
-
- to return something like:
-
- {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
-
- But I get:
-
- {"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
-
- It seems impossible to turn of this interpretation as text delimiters for
- characters like "\:("" but it seems like "." is OK in a word!
-
- The AppleScript langauge guide seems to imply that the original intention
- was to provide a list of delimiters but there is no mention of what the
- default set is or how to override it. Currently only the first of which
- works in addition to the standard set.
-
- Any suggestions?
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Tue, 20 Sep 1994 09:06:03 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: New AppleScript books
-
- I ntoiced in MacTech J Aug 1994 an ad from M&T books for a new AS book
- comeing in September:
-
- Applied Apple Scripting by Thomas Trinko
- Disk/book $35
- ISBN 1-55851-330-7
-
- Anyone seen this one yet?
-
- Also whats the status of "Everyday AppleScript". When is it due to be published?
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Tue, 20 Sep 1994 12:20:30 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Using AppleScript text delimiters
- In-Reply-To: <no.id> from "Kevin Purcell" at Sep 20, 94 09:05:56 am
-
- --Kevin Purcell wrote:
- >
- >For example, I am parsing strings like the following:
- >
- >set oldDelimiters to delimiters of AppleScript to " "
- >set AppleScript's delimiters to " "
- >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- >get words of s
- >set AppleScript's delimiters to oldDelimiters
-
- I hope you are actually stating "text item delimiters" and not just
- delimiters in your script. If you aren't, this won't even compile.
-
- >to return something like:
- >
- > {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
- >
- >But I get:
- >
- >{"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
- >
- >It seems impossible to turn of this interpretation as text delimiters for
- >characters like "\:("" but it seems like "." is OK in a word!
-
- Your problem in the script is you are asking for "words of s." The
- class word isn't effect by the text item delimiters. If you want to get
- the result you are looking for you have to get the "text items of s."
- This tells AppleScript to look at the current setting of the text item
- delimiters and parse the string accordingly.
-
- >The AppleScript langauge guide seems to imply that the original intention
- >was to provide a list of delimiters but there is no mention of what the
- >default set is or how to override it. Currently only the first of which
- >works in addition to the standard set.
-
- Unfortunately, AppleScript only looks at the first item from a list
- of delimiters. Hopefully, this is something that will be fixed in the
- future. As for the default set, AppleScript defines it's standard text
- item delimiter to {""}. Which means each character in a string is a text
- item.
-
- -Hades
- =========================================================================
- Date: Tue, 20 Sep 1994 10:00:13 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Disabling cancel (cmd-.) possible?
-
- I don't like answering myself, but...in response to this:
- >>Is there a way to temporarily disable canceling the execution of a script?
- >>There is a point in a script for a very brief period of time (less than two
- >>seconds) that could cause loss of data for the user if they cancelled. It's
- >>not likely they'll cancel at that point but it is possible.
- >
-
- I previously said this:
- >I can't think of any. If you can't redo the script so that the data loss
- >is impossible, you may have to move the dangerous operations into a
- >Scripting Addition or a small application, where you would have more
- >control.
-
- But...command-. is under the control of the frontmost application. If
- something other than the script application is in front, it seems unlikely
- that hitting command-. will cancel a running script. Finder is generally
- fairly benign with respect to command-. (although if your script uses the
- Finder to do things, you would want to verify that moving Finder to the
- front would be safe).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 20 Sep 1994 10:00:22 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Checking a Frontier table
-
- > Checking a Frontier table
- >I would like to find a script that when pass a table address and a value,
- >checks to see if the value is equal to any element of the table. I'm sure
- >someone has had to write this, and I don't have the time, and even want to
- >re-invent the wheel.
-
- Shawn,
- The findValue script below returns a list of names of cells in a table
- which contain a value. However, this form does its best to coerce each
- cell to the type of the passed value (or the reverse, in some cases). That
- may not be what you want. The findValue2 script checks for the type before
- checking for equal values.
-
- Each script tested only "lightly". The ^ characters are important. If
- you just want to find out whether at least one cell matches, the changes
- are fairly obvious: ditch the result list, return true if the test passes,
- return false at the end of the script.
-
- on findValue (adr, val) =AB find val in table at adr
- if typeOf (adr^) !=3D tableType
- scriptError ("Please pass the address of a table as the first param"=
- )
- local (ix, result =3D {})
- for ix =3D 1 to sizeof (adr^)
- if adr^[ix] =3D=3D val
- result =3D result + nameOf (adr^[ix])
- return (result)
- on findValue2 (adr, val) =AB find val in table at adr
- if typeOf (adr^) !=3D tableType
- scriptError ("Please pass the address of a table as the first param"=
- )
- local (ix, result =3D {}, itsType =3D typeOf (val))
- for ix =3D 1 to sizeof (adr^)
- if typeOf (adr^[ix]) =3D=3D itsType && adr^[ix] =3D=3D val
- result =3D result + nameOf (adr^[ix])
- return (result)
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 20 Sep 1994 12:20:12 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
- Subject: Re: MACSCRPT Digest - 18 Sep 1994 to 19 Sep 1994
- In-Reply-To: <no.id> from "Automatic digest processor" at Sep 20,
- 94 00:00:13 am
-
- >
- > Date: Mon, 19 Sep 1994 12:34:34 -0700
- > From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- > Subject: Re: Disabling cancel (cmd-.) possible?
- >
- > >Is there a way to temporarily disable canceling the execution of a script?
- > >There is a point in a script for a very brief period of time (less than two
- > >seconds) that could cause loss of data for the user if they cancelled. It's
- > >not likely they'll cancel at that point but it is possible.
- >
- > I can't think of any. If you can't redo the script so that the data loss
- > is impossible, you may have to move the dangerous operations into a
- > Scripting Addition or a small application, where you would have more
- > control.
- > --John
- >
- > --
- > jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- >
-
- Can't you use a try... on error handler and trap -128 ("user
- cancelled")?
-
- Jason
- --
- Are you trying to say waffles are | Jason Frankovitz
- diuretics, or that consuming diuretics | Bloomington, IN
- makes you waffle? | jfrankov@indiana.edu
- =========================================================================
- Date: Tue, 20 Sep 1994 10:24:32 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Shaff <shaff@QUILTY.STANFORD.EDU>
- Subject: Cooperating with apps
-
- Greetings,
-
- Sometime back I wrote about switching application contexts:
-
- >Is there a more robust way of accomplishing a context switch?
-
- Given the Scriptable Finder, yes. This should do the trick:
-
- tell application "Finder"
- set frontmost of process "Premiere @ 18Mb" to true
- end tell
-
- Without the Scriptable Finder, there may well be an osax (or 10)...I
- haven't looked.
-
- In my situation I am developing for a studio which does not have the option of
- getting the scriptable finder until (at earliest) Xmas break. So, the question
- remains unanswered. In the absence of the scriptable finder, is there a robust
- way of achieving context switches?
-
- Thanks.
-
- Michael
- =========================================================================
- Date: Tue, 20 Sep 1994 11:07:12 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Scripts as direct objects - an AS oddity
-
- Danny Goodman writes...
-
- >>AppleScript will try to pass the "do to
- >>script" message to the script_object directly, and won't dispatch it to
- >>the application.
- >
- >I'm going over the QuarkXpress scripting docs, and I see that they claim to
- >be able to handle this. The example they provide is:
- >
- >script theRealScript
- > tell app "QuarkXpress"
- > -- script statements
- > end tell
- >end script
- >
- >tell app "QuarkXpress"
- > do script (theRealScript)
- >end tell
- >
- >The claim is that the script "is processed completely within the
- >application." Is that what you're trying to do? Haven't tested it yet.
-
- Quark (in the form of Dave Shaver) extended the Miscellaneous suite Do
- Script event in a couple of ways.
-
- First, if the direct object is a string (as it usually is), there is an
- optional second parameter (terminology "script type", code 'XSCT') which
- gives the id of the scripting component (default is AppleScript) to pass
- the script text to. So one could say
-
- tell app "QuarkXPress"
- do script "msg (\"Hi, there\")" script type "LAND"
- end tell
-
- to run that little script as a Frontier script.
-
- Second, the direct object may be a script object, as noted above.
-
- Third...I believe that if the direct object is an alias, the file referred
- to can be a file containing a script resource in the usual form. [That's
- from memory.]
-
- I like those extensions...the 'misc'/'dosc' handler in my copy of Frontier
- implements much the same extensions (I haven't released that to the world
- yet).
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 20 Sep 1994 11:07:17 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Using AppleScript text delimiters
-
- >I have noticed that I don''t have quite the control over text delimiters as
- >I would like. I am essentiall trying to do something a bit like strtok().
- >
- >For example, I am parsing strings like the following:
- >
- >set oldDelimiters to delimiters of AppleScript to " "
- >set AppleScript's delimiters to " "
- >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- >get words of s
- >set AppleScript's delimiters to oldDelimiters
- >
- >to return something like:
- >
- > {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
- >
- >But I get:
- >
- >{"bingo", "foo", "bar", "C", "\\", "foo", "\\", "bar.baz", "xyzzy", "plugh"}
- >
- >It seems impossible to turn of this interpretation as text delimiters for
- >characters like "\:("" but it seems like "." is OK in a word!
- >
- >The AppleScript langauge guide seems to imply that the original intention
- >was to provide a list of delimiters but there is no mention of what the
- >default set is or how to override it. Currently only the first of which
- >works in addition to the standard set.
-
- 1. The text item delimiters delimit text items. [Parsing aide: The "text
- item delimiters" delimit "text items".] They are also used as breaks when
- AppleScript coerces a list to a string. They do not delimit words.
-
- 2. AppleScript's default text item delimiters are {""}.
-
- 3. AppleScript through version 1.1 ignores every element of its text item
- delimiters except for the first. I've also seen this on real or virtual
- paper, but can't point to where.
-
- 4. Scriptable Text Editor's default text item delimiters are {","} (page
- 319 of AppleScript Language Guide).
-
- I think I've seen items 2 and 3 on virtual or real paper from Apple, but
- I can't point to it. They can be determined experimentally. And how would
- the breaking of coerced lists be handled by some future AppleScript version
- which uses the whole list???
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 20 Sep 1994 19:59:37 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Re: problems with Script Wizard 1.0
-
- Stefania:
-
- In Regards to your letter <"relay1.pip.456:20.08.94.18.02.22"@pipex.net>:
- > I was starting to use Script Wizard 1.0, and that is what's happened.....
- >
- > I opened a script, which is actually an application, with Script Wizard 1.0.
- > I made some changes (not very dangerous, I thought...) closing then the
- script.
- >
- > After that I was not able anymore to reopen the script neither
- > with Script Wizard or Script Editor.
-
- We've not seen a message from you on our technical support e-mail
- account; I apologise if a message from you is already on its way to us.
-
- Can you e-mail us a bin-hexed copy of the script application, _and_ of
- the damaged file, so we can try to find out what went wrong?
-
- Also, can you tell us your system configuration?
-
- This is not a "known problem" but of course we take it _very_ seriously.
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Tue, 20 Sep 1994 20:12:06 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul G Smith <paul@CTALK.EXNET.COM>
- Organization: commstalk, & Full Moon Software
- Subject: Re: Scripts as direct objects - an AS oddity
-
- Hi Danny,
-
- In Regards to your letter <199409201639.AA05188@mailgate.exnet.com>:
- > >AppleScript will try to pass the "do to
- > >script" message to the script_object directly, and won't dispatch it to
- > >the application.
- >
- > I'm going over the QuarkXpress scripting docs, and I see that they claim to
- > be able to handle this. The example they provide is:
- >
- > script theRealScript
- > tell app "QuarkXpress"
- > -- script statements
- > end tell
- > end script
- >
- > tell app "QuarkXpress"
- > do script (theRealScript)
- > end tell
- >
- > The claim is that the script "is processed completely within the
- > application." Is that what you're trying to do? Haven't tested it yet.
-
- I don't have Quark XPress so I can't try it myself, but my claim is
- indeed that this will not send the "do script" event to the app in AS
- 1.1. I think that the "do script" message will be dispatched directly
- to the script and never sent to XPress. (If it does work in XPress, I
- need to take a look at the XPress aete and scripting size resiources in
- case they are using a flag to trigger different behavior, because that
- also suggests that we will be able to fix the problem in SW too.)
-
- It will work as documented in the XPress docs with AS 1.0, and it would
- even have worked that way until well into the AS 1.1 alpha test period
- (I _think_ the change was made in the AS 1.1a4q4 build, shortly before
- beta, because that was when the new mode flag was added.)
-
-
- best regards, Paul
-
- +------------------------------------------------------------------+
- | Paul G Smith, Full Moon Software || UK ph: +44 1727 844232
- | PO Box 116, ST ALBANS, Herts AL1 2RL UK || fax: +44 1727 856139
- | & Full Moon Software, Inc || US ph: 408 253 7199
- | P O Box 700237, SAN JOSE, CA 95170 USA || fax: 408 252 2378
- =========================================================================
- Date: Tue, 20 Sep 1994 15:03:25 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Using AppleScript text delimiters
-
- I tried fooling about with the text items but got some silly results. I
- guess I didn't try this combination.
-
- Rewriting the script to remove typos and incorporate suggestions gives:
-
- set oldDelimiters to text item delimiters of AppleScript
- set AppleScript's text item delimiters to " "
- set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- set ti to text items of s
- set AppleScript's text item delimiters to oldDelimiters
- ti
-
- this returns:
-
- {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
-
- Which is close enough.
-
- Thanks to Brian and John.
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Tue, 20 Sep 1994 18:26:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Atul Butte <atul_butte@BROWN.EDU>
- Organization: Brown University School of Medicine
- Subject: Re: Where can I find the TCP/IP osax?
-
- >I am now sending a new version of the TCP/IP Scripting Addition (version
- >1.1) to the gaea.kgs.ukans.edu AppleScript archives. I think Fred Terry
- >will post a message when it becomes accessible.
-
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
-
- +-----------------
- Atul Butte
- Brown University School of Medicine
- atul_butte@brown.edu
- =========================================================================
- Date: Tue, 20 Sep 1994 18:27:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Atul Butte <atul_butte@BROWN.EDU>
- Organization: Brown University School of Medicine
- Subject: Re: [?] on TCP/IP osax
-
- In article <GRAND%LISTS.APPLESCRIPT.3869@brownvm.brown.edu>, you wrote:
-
- > I just tried out the TCP/IP osax with the Send Mail sample script. It
- > worked great.
- >
- > My question is: Can I include a subject? If I can, how can it be
- > incorporated into the Send Mail script.
- >
-
- Check out the new version just posted on gaea... the sample mail script now
- includes a subject line!
-
- >I am now sending a new version of the TCP/IP Scripting Addition (version
- >1.1) to the gaea.kgs.ukans.edu AppleScript archives. I think Fred Terry
- >will post a message when it becomes accessible.
-
- You'll find it in
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-1-1.sea.hqx
-
- +-----------------
- Atul Butte
- Brown University School of Medicine
- atul_butte@brown.edu
- =========================================================================
- Date: Tue, 20 Sep 1994 15:41:44 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Alec Plumb <aplumb@UCSD.EDU>
- Subject: Re: Eudora 2.1 and notifying applications...
-
- >
- >on notify(messages)
- >display dialog (class of messages)
- >end
- >
- >It returns "scrpt", and not "list" as it should. I don't know if this is a
- >bug in the Eudora Notification OSAX or not... I noticed the bizarre fact
- >that the OSAX is called "notify", not "notice" as well. That may, in fact,
- >be the problem. The author may have simply written an OSAX for simple
- >notification, and not notification with parameters... I'll write to him and
- >find out.
- >
- >Steve Dorner replied to my question about exactly what parameters the
- >notification sends by quoting the dictionary entry above. That leads me to
- >believe that it is, in fact, the OSAX which is not sending along the proper
- >parameters... I'll keep you posted.
- >
-
- Well, I canibalized the Eudora Announcer script, which does not require the
- Eudora Notification OSAX, removed the Eudora Notification OSAX, and with
- the following script:
-
- on =ABevent CSOmeNot=BB (theNewMessages)
- display dialog (class of theNewMessages)
- end =ABevent CSOmeNot=BB
-
- I also got a result of "scrpt". So I don't think the problem is with the
- osax. The unmolested Eudora Announcer also does not seem to do anything
- except get lanuched with my setup. (Eudora 2.1, System 7.5 with all the
- required OSAXes in place.)
-
- Has anybody successfully written a script to handle Eudora 2.1
- notifications? I just got my spiffy new pager and can't wait to get Eudora
- melded with Notify! to satisfy my compulsive need to be wired in.
-
-
- Alec Plumb \\ W:619/534-8166 \\
- Macintosh Support \\ H:619/294-2112 \\
- IGPP \\ SIO \\ UCSD \\ aplumb@ucsd.edu \\
- =========================================================================
- Date: Tue, 20 Sep 1994 17:12:10 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
- Subject: unsubscribe
-
- david weingarten
- =========================================================================
- Date: Tue, 20 Sep 1994 23:32:07 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Kearney <wkearney@ACCESS.DIGEX.NET>
- Subject: Sending clipboard to Eudora via AppleScript
-
- The following text should be pasted into an AppleScript document. It will
- let you take the current contents of the clipboard and paste it into a new
- text message in Eudora. The requirements are the OSAX Jon's Commands and
- the GTQ Scripting Library. They're on gaea.kgs.ukans.edu. They must
- reside on the sending machine, as should this script. You might also want
- to use the OSAX menu extension, also on gaea, to add this to your menu bar.
-
-
- Basically, I run Eudora on a PowerBook. I develop on another machine. The
- development machine has a nasty tendency to get trashed and I don't like
- taking Eudora with it! So I always ended up retyping code snippets and
- such from the dev machine over to the PB. I wrote this to make that
- process MUCH easier.
-
- I don't know what rev Eudora it requires, I tried it using 2.1.
-
- It's not perfect, since it requires you hard code the target machine,
- username and password. Not a problem in my circumstances, but your's may
- vary. As soon as I get the hang of saving pseudo-preferences via
- AppleScript I'll add that feature. Meanwhile, at least it works!
-
- It does NO real error checking. Don't use it unless you know the target
- machine's going to be there.
-
- Since I write a bunch of Newton shareware, this too, is shareware. If you
- like it, please send $5 to:
-
- Bill Kearney
- P.O.Box 201
- Lutherville, MD 21093
-
- If you don't wanna pay, at least e-mail me some thanks!
-
- Enjoy!
-
-
- --(Code follows now)
-
-
- -- These two lines are hard-coded to my Eudora machine. You should edit
- them to reflect your configuration
- -- As soon as I learn how, I'll set up some sort of user prefs.
-
- set myApp to application "Eudora" of machine "Monster Mash"
- set refInfo to (login as "Bill Kearney" password "Bill")
-
- set theText to the clipboard
-
- display dialog "Send the clipboard to what e-mail address?" default answer =
- =AC
- "" buttons {"OK", "Cancel"} default button "OK" with icon stop
- copy the result to theResult
- if the button returned of theResult is "Cancel" then
- return
- end if
- copy the text returned of theResult to theAddress
-
- display dialog "Using what subject?" default answer =AC
- "" buttons {"Queue", "Create", "Cancel"} default button "Create" with ic
- on =
- stop
- copy the result to theResult
- if the button returned of theResult is "Cancel" then
- return
- else if the button returned of theResult is "Queue" then
- set theQueue to true
- else if the button returned of theResult is "Create" then
- set theQueue to false
- end if
- copy the text returned of theResult to theSubject
-
- tell application "Eudora" of machine "Monster Mash"
- =09
- set newMsg to make new message at end of mailbox "Out" in mail folder ""
- set field "To:" of newMsg to theAddress
- set field "Subject:" of newMsg to theSubject
- set field "" of newMsg to theText
- =09
- if theQueue then
- queue newMsg
- end if
- =09
- end tell
-
- logout refInfo
-
- --(End of Code)
-
-
- Bill Kearney | wkearney@access.digex.net | copyright 199=
- 4
- Baltimore, MD USA | http://www.digex.net/~wkearney/ | W.G.Kearney
- (410) 235-4574 | ftp://ftp.digex.net/pub/access/wkearney/ |
- =========================================================================
- Date: Tue, 20 Sep 1994 21:20:58 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: New AppleScript books
-
- >I ntoiced in MacTech J Aug 1994 an ad from M&T books for a new AS book
- >comeing in September:
- >
- >Applied Apple Scripting by Thomas Trinko
- >Disk/book $35
- >ISBN 1-55851-330-7
- >
- >Anyone seen this one yet?
-
- I suspect the M&T ad will turn out to have been a trifle optimistic in
- saying "September". They wanted some revisions to the book (as compared
- with the prior publisher, who bailed out near the end of the process).
- Note the space in the name between "Apple" and "Scripting"...the book
- discusses (at least) AppleScript and Frontier.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Tue, 20 Sep 1994 14:43:05 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Shawn Connelly <sconnelly@QM.PRUBANK.COM>
- Subject: Re: Checking a Frontier tab
-
- RE>>Checking a Frontier tabl
- Thanks for the help.
-
- --------------------------------------
- Date: 9/20/94 2:27 PM
- To: Shawn Connelly
- From: Macintosh Scripting Systems
- Reply to: RE>Checking a Frontier table
- >>I would like to find a script that when pass a table address and a
- value,
- >>checks to see if the value is equal to any element of the table. I'm
- sure
- >>someone has had to write this, and I don't have the time, and even want
- >>to re-invent the wheel.
- >>
- >> Thanks.
- >> Shawn Connelly
- >
- >
- > The "defined" verb does exactly what you want. It takes one argument:
- >the address whose existance you want to confirm.
- >
- >--Richard Petty
-
- MY MISTAKE!!! I misunderstood your question!
-
- You'll need to write this yourself. Of this I'm sure. The nice thing is,
- it's a rather trivial script.
-
-
- on TableContains (TableToTest, TestValue) {
- local (TableIndex);
- for TableIndex = 1 to sizeOf (TableToTest^) {
- if TableToTest^[TableIndex] == TestValue {
- return (true)}};
- return (false)};
-
- dialog.alert (TableContains (@root.newsTable, "Mark"))
-
-
- This can be made more robust, of course. I included the calling
- statement (dialog.notify) to show it being used.
-
- Sorry for the gaff...
-
- --Richard Petty
-
-
-
- ------------------------------------------------------------------------
- Shawn Connelly | Computers are useless. They
- The Prudential Bank | can only give you answers.
- Two Concourse Pkwy, #400 | - Pablo Picasso
- Atlanta, GA 30328 |
- Internet: shawn@prubank.com -or- shawn@cars.com; Phone: 404-604-7939
- =========================================================================
- Date: Wed, 21 Sep 1994 09:46:22 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: Problem with comparing Strings!
-
- Does anybody know why this script doesnot work as expect.
- "SUBFOLDER"="SUBFOLDER" should be TRUE!
-
- set argl to words of "mist SUBFOLDER TEXT"
- repeat with x in argl
- log (class of x)
- log (x)
- log ("SUBFOLDER" = x)
- end repeat
-
- Eventprotokoll: (*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*str
- ing*)(*TEXT*)(*false*)
-
- The solution is: (but I do not know why!!)
- set argl to words of "mist SUBFOLDER TEXT"
- repeat with x in argl
- log (class of x)
- log (x)
- log ("SUBFOLDER" = (x as string)) -- you have to covert the "String" x t
- o a
- "String" !!
- end repeat
-
- Thanx
- Andreas
-
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Wed, 21 Sep 1994 09:51:20 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Problem with comparing Strings!
- In-Reply-To: <no.id> from "Andreas Heissenberger,HOL" at Sep 21, 94 09:46:22 am
-
- --Andreas Heissenberger wrote:
- >
- >Does anybody know why this script doesnot work as expect.
- >"SUBFOLDER"="SUBFOLDER" should be TRUE!
- >
- >set argl to words of "mist SUBFOLDER TEXT"
- >repeat with x in argl
- > log (class of x)
- > log (x)
- > log ("SUBFOLDER" = x)
- >end repeat
-
- You need to go and get your AppleScript Language Guide (English
- Dialect) off of the bookshelf, and turn it to page 202. This is the
- section that talks about the "Repeat With (loop Variable) In (list)"
- control statement. For those of you that have another AS book, I'm sure
- there is a similar section to look up. You need to access the contents
- of the loop variable if you want to work with it's actual value.
-
- -Hades
- =========================================================================
- Date: Wed, 21 Sep 1994 09:53:30 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Using AppleScript text delimiters
- In-Reply-To: <no.id> from "Kevin Purcell" at Sep 20, 94 03:03:25 pm
-
- --Kevin Purcell wrote:
- >
- >set oldDelimiters to text item delimiters of AppleScript
- >set AppleScript's text item delimiters to " "
- >set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- >set ti to text items of s
- >set AppleScript's text item delimiters to oldDelimiters
- >ti
- >
- >this returns:
- >
- >{"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
- >
- >Which is close enough.
-
- Just out of curiosity, what would you like to have returned in the
- list variable? It seems obvious to me that you have asked AppleScript to
- parse a string based on it's whitespace. You got exactly the result you
- should have for the string you parsed.
-
- -Hades
- =========================================================================
- Date: Wed, 21 Sep 1994 07:04:13 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andrew T. Johnston" <atjohnst@APPLE.COM>
- Subject: RE>Problem with comparing Strings!
-
- Hi,
-
- "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT> writes:
- > Does anybody know why this script doesnot work as expect.
- > "SUBFOLDER"="SUBFOLDER" should be TRUE!
-
- > set argl to words of "mist SUBFOLDER TEXT"
- > repeat with x in argl
- > log (class of x)
- > log (x)
- > log ("SUBFOLDER" = x)
- > end repeat
-
- This is a bit tricky, and the log is a bit misleading in this case. For
- every iteration of your loop, 'x' is a _reference_ to an item in 'argl'. I
- guess the log is resolving all the references, where the equality operation
- is not. This makes your comparison of "SUBFOLDER" = (item 2 of argl), which
- is false because "SUBFOLDER" is not a reference to item 2 of 'argl'.
-
- > The solution is: (but I do not know why!!)
- [...]
- > log ("SUBFOLDER" = (x as string))
- [...]
-
- This works because it resolves the reference (item 2 of argl), and returns
- the string "SUBFOLDER", making the comparison true.
-
- To see this reference stuff in action, run this script:
-
- set argl to words of "mist SUBFOLDER TEXT"
- repeat with x in argl
- x
- end repeat
-
-
- Look at the result. The Script Editor tells me it is:
-
- item 3 of {"mist", "SUBFOLDER", "TEXT"}
-
-
- I've run into this one a few times myself.
-
- Hope that helps,
- Andrew
-
- ------------------
- Andrew T. Johnston
- Apple Canada, Inc.
- atjohnst@apple.com
- =========================================================================
- Date: Wed, 21 Sep 1994 07:15:57 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@AIDT.EDU>
- Subject: Re> Problem with comparing Strings!
-
- ------ From: Macintosh Scripting Systems, Wed, Sep 21, 1994 ------
-
- >Does anybody know why this script doesnot work as expect.
- >"SUBFOLDER"="SUBFOLDER" should be TRUE!
-
- >set argl to words of "mist SUBFOLDER TEXT"
- >repeat with x in argl
- log (class of x)
- log (x)
- log ("SUBFOLDER" = x)
- >end repeat
-
- >Eventprotokoll:
- (*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*string*)(*TEXT*)(*f
- alse*)
-
-
- if you do the following
-
- set argl to words of "mist SUBFOLDER TEXT"
- repeat with x in argl
- x
- end repeat
-
-
- the result in the show results window is
- item 3 of {"mist", "SUBFOLDER", "TEXT"}
-
- Log and result must do thing differently!
- =========================================================================
- Date: Wed, 21 Sep 1994 11:17:38 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Goodman <DGoodman@AOL.COM>
- Subject: Re: Cooperating with apps
-
- >In the absence of the scriptable finder, is there a robust
- >way of achieving context switches?
-
- With the PreFab Player product (which I recommend to fill scripting gaps in
- any app) comes an XCMD called appMenu, which lets you call the Applications
- menu. This XCMD was created by UserLand, so it may be available from their
- forum libraries on various services or ftp sites.
-
- Danny Goodman
- =========================================================================
- Date: Wed, 21 Sep 1994 11:41:38 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paul Gerardi <gerardi@RIDGEFIELD.SDR.SLB.COM>
- Subject: Re: driver for print to disk?
-
- >I have fax software that will autoprint incoming faxes. I would like to
- >save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
- >note when new files appear and then I can process them with other
- >AppleScript applications.
- >
- >Anyone know of a printer driver that saves to disk as TIFF? Actually I
- >suppose I could use any file format that is common and I could convert it
- >to a format readable by OCR but I assume TIFF is probably best.
- >
- >Kee Nethery
- >
- >_________________________________________________________________
- >Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
-
- Kee,
-
- There is a PD/Shareware utility called Print2Pic that is a chooser
- pseudo-printer that will print to a PICT file. Should do what you need.
- I believe it's available from info-mac and its mirrors (I think that's
- where I got it from...)
-
- It also has plug-ins that support printing to "postcards", self running
- doc files; and QuickTime movies among other things. Could be useful for
- you for other things besides your initial query.
-
- Regards,
- -Paul
-
-
- =======================================================================
- Paul Gerardi Schlumberger-Doll Research
- Computing Services Old Quarry Road
- Macintosh, Workstations, Networks Ridgefield, CT 06877
- e-mail: gerardi@ridgefield.sdr.slb.com Phone: (203)431-5471
- AppleLink: GERARDI.SDR Fax: (203)438-3819
- =======================================================================
- =========================================================================
- Date: Wed, 21 Sep 1994 08:56:46 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Using AppleScript text delimiters
-
- >--Kevin Purcell wrote:
- >>
- >>set oldDelimiters to text item delimiters of AppleScript
- >>set AppleScript's text item delimiters to " "
- >>set s to "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
- >>set ti to text items of s
- >>set AppleScript's text item delimiters to oldDelimiters
- >>ti
- >>
- >>this returns:
- >>
- >>{"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
- >>
- >>Which is close enough.
- >
- > Just out of curiosity, what would you like to have returned in the
- >list variable? It seems obvious to me that you have asked AppleScript to
- >parse a string based on it's whitespace. You got exactly the result you
- >should have for the string you parsed.
- >
- >-Hades
-
- I simplified the problem for the list. In the real world I can get strings like:
-
- "bingo foo bar C:\\foo\\bar.baz (xyzzy plugh"
- "bingo foo bar C:\\foo\\bar.baz ( xyzzy plugh"
-
- The above code gives:
-
- {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(xyzzy", "plugh"}
- {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "(", "xyzzy", "plugh"}
-
- If I could use more than one text item delimiter, like so:
-
- to tokenize(aString)
- set oldDelimiters to text item delimiters of AppleScript
- set AppleScript's text item delimiters to {" ", "("}
- set tokens to text items of aString
- set AppleScript's text item delimiters to oldDelimiters
- return tokens
- end
-
-
- I would get a result more to my liking in this case:
-
- {"bingo", "foo", "bar", "C:\\foo\\bar.baz", "xyzzy", "plugh"}
-
- Rather than having to shift out the "(" at a later point (which roughs up
- the code).
-
- One idea that was brought up in the develop issue 10 article about Apple
- script was the cocept that you should be able to think what you want and
- write the code straight from that thought, rather than translating into
- some algorithmic work around.
-
- But I suppose I get what I deserve if I try to parse strings with a DOS
- filename in them :-)
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Wed, 21 Sep 1994 08:56:55 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kevin Purcell <kevinpu@ATM.COM>
- Subject: Re: Problem with comparing Strings!
-
- >Does anybody know why this script doesnot work as expect.
- >"SUBFOLDER"="SUBFOLDER" should be TRUE!
- >
- >set argl to words of "mist SUBFOLDER TEXT"
- >repeat with x in argl
- > log (class of x)
- > log (x)
- > log ("SUBFOLDER" = x)
- >end repeat
- >
- >Eventprotokoll:
- >(*string*)(*mist*)(*false*)(*string*)(*SUBFOLDER*)(*false*)(*string*)(*TEXT*)(*
- >false*)
-
- Because x in a repeat with loop is a reference to the item of interest not
- the item itself:
-
- To see this run this one:
-
- set argl to words of "mist SUBFOLDER TEXT"
- repeat with x in argl
- set r to x
- end repeat
- r
-
- gives the result:
-
- item 3 of {"mist", "SUBFOLDER", "TEXT"}
-
- rather than:
-
- "TEXT"
-
- The "class of" gives you the class of the object the thing is a reference to.
-
- Kevin Purcell, N7WIM / G8UDP kevinpu@eve.atm.com 206/649-6489
- Attachmate Corp xenolith@halcyon.com
- =========================================================================
- Date: Wed, 21 Sep 1994 12:29:17 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Data <czen@COLUMBIA.EDU>
- Subject: Re: driver for print to disk?
- In-Reply-To: <199409211545.AA13171@mailhub.cc.columbia.edu>
-
- > >I have fax software that will autoprint incoming faxes. I would like to
- > >save incoming faxes to disk in a TIFF format. I can use FolderWatcher to
- > >note when new files appear and then I can process them with other
- > >AppleScript applications.
- > >
- > >Anyone know of a printer driver that saves to disk as TIFF? Actually I
- > >suppose I could use any file format that is common and I could convert it
- > >to a format readable by OCR but I assume TIFF is probably best.
-
- you can use Print2Pict. and then use JPEGView's droplet converter to
- convert em to tiffs.
-
- hope that helps
-
- /data <czen@columbia.edu>
- Matrix 29.12 Op and Control Strip Modules Archive Maintainer
- --------------------------------------------------------------------------
- voice 212-853-7882 Matrix 29.12 now fully operational
- --------------------------------------------------------------------------
- Love your enemies: they'll go crazy trying to figure out what you're up to.
- =========================================================================
- Date: Wed, 21 Sep 1994 11:38:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Cooperating with apps
- In-Reply-To: Your message of "Wed, 21 Sep 94 11:17:38 EDT"
-
- >>In the absence of the scriptable finder, is there a robust
- >>way of achieving context switches?
- >
- >With the PreFab Player product (which I recommend to fill scripting gaps in
- >any app) comes an XCMD called appMenu, which lets you call the Applications
- >menu. This XCMD was created by UserLand, so it may be available from their
- >forum libraries on various services or ftp sites.
- >
- >Danny Goodman
-
- Don't know if it's the same one, but you'll find it on
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx
-
- Cheers.
-
- pf
- =========================================================================
- Date: Wed, 21 Sep 1994 09:42:19 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jerry Ballard <gqb@FARALLON.COM>
- Subject: Need Find & Replace Addition
-
- Does anyone know the location of a Scripting Addition that will perform bulk
- replacement of character(s), i.e. replace all occurances of character "x"
- with character "y" in a string. (I currently do it with a script, but need
- something faster.)
-
- -tks
- Jerry Ballard
- Farallon Computing Inc.
- =========================================================================
- Date: Wed, 21 Sep 1994 14:33:22 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jim Mueller <jim@PHARMACOP.COM>
- Subject: Getting current printer info
-
- Is there a way to find out what a Mac's current printer is if it's on
- LaserWriter 8.*? Earlier drivers appear to have kept the printer name in a
- resource, but I can't find it now in either the LaserWriter 8 driver,
- LaserWriter 8 Prefs or the Printer Descriptions themselves.
-
- (I wish the Chooser would highlight the currently selected driver too, but
- that's probably just me.)
-
-
-
- Background:
-
- I am trying to script a print station app where a mac with a serial label
- printer (Brother P-Touch PC) connected will check to see if a print file
- has showed up in a mounted UNIX directory (courtesy of CAP60), change the
- printer to the serial printer, read the file with QuicKeys' Display Text,
- print it to the label printer, **switch the printer back to what it was
- before**, then delete the file in the UNIX directory.
- I know the app "lpDaemon" is suposed to make a printer on a networked mac
- available to the UNIX lpr command, but I havn't been able to get it to work
- yet (currently e-mailing (conversing via e-mail) with the author), so I
- need a fallback.
-
- -^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-^^^^-
- Jim Mueller Pharmacopeia Inc. (609) 987-8308
- jim@pharmacop.com
- LAN Manager / Software Engineering / Graphic Arts / Mechanical Engineering
- =========================================================================
- Date: Wed, 21 Sep 1994 13:25:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
- Subject: Re: Disabling cancel (cmd-.) possible?
-
- > >Is there a way to temporarily disable canceling the execution of a
- > >script? There is a point in a script for a very brief period of
- > >time (less than two seconds) that could cause loss of data for the
- > >user if they cancelled. It's not likely they'll cancel at that point
- > >but it is possible.
- >
- > I can't think of any. If you can't redo the script so that the data
- > loss is impossible, you may have to move the dangerous operations into a
- > Scripting Addition or a small application, where you would have
- > more control.
- > --John
-
- I have rewritten the script so that it updates a temp file that then replaces
- the current status file only after being fully updated. This works fine in
- most cases such as power loss, crashes, cancelling, etc. There are still
- minor "holes" in the script where the user could lose data but it is much
- less likely now.
-
- The only other problem of not being able to handle cancels is that I can't
- keep my log accurate then since I can't write to log the in the event of the
- user cancelling. If there is a way to get around this problem I'd love to
- know how.
-
- Thanks,
-
- Greg
- =========================================================================
- Date: Thu, 22 Sep 1994 09:14:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Cooperating with apps
-
- Fred Terry <pfterry@LKS.CSI.COM> writes:
-
- >>>In the absence of the scriptable finder, is there a robust
- >>>way of achieving context switches?
- >>
- >>With the PreFab Player product (which I recommend to fill scripting gaps in
- >>any app) comes an XCMD called appMenu, which lets you call the Applications
- >>menu. This XCMD was created by UserLand, so it may be available from their
- >>forum libraries on various services or ftp sites.
- >>
- >>Danny Goodman
- >
- >Don't know if it's the same one, but you'll find it on
- >
- >ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx
-
- That one is mine. It only lets you make selections from the first three items
- in the application menu: hide frontmost application, hide others, and show all.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 22 Sep 1994 09:23:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Getting current printer info
-
- Jim Mueller <jim@PHARMACOP.COM> writes:
-
- > (I wish the Chooser would highlight the currently selected driver too, but
- >that's probably just me.)
-
- This was true, but the point is now moot. With QuickDraw GX, you choose your
- default printer in the Finder, and it's clearly highlighted there. The Chooser
- now does little more than create the desktop printer icons.
-
- > I am trying to script a print station app where a mac with a serial label
- >printer (Brother P-Touch PC) connected will check to see if a print file
- >has showed up in a mounted UNIX directory (courtesy of CAP60), change the
- >printer to the serial printer, read the file with QuicKeys' Display Text,
- >print it to the label printer, **switch the printer back to what it was
- >before**, then delete the file in the UNIX directory.
-
- This kind of thing is _much_ easier to do with QuickDraw GX. The new Printing
- Manager gives you a terrific amount of control. In particular, with one call
- (GXSelectJobOutputPrinter), you can redirect your job to a different desktop
- printer, without affecting the choice of default printer. And if you can't get
- a GX-compatible driver for your Brother (I would imagine GDT Softworks would
- have one, if anyone would), it would be a lot easier to write your own, than
- it was in pre-GX days.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 22 Sep 1994 09:59:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Re: Need Find & Replace Addition
-
- >Does anyone know the location of a Scripting Addition that will perform bulk
- >replacement of character(s), i.e. replace all occurances of character "x"
- >with character "y" in a string. (I currently do it with a script, but need
- >something faster.)
-
- You could use Script Tools' (on gaea) Regular Expressions for grep-style
- search & replaces. However, I've had trouble getting it to work (crashes
- etc), and requests for help to the list and Mark Aldritt(?), the author,
- have met with silence.
-
- You might have more luck than me.
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Wed, 21 Sep 1994 22:10:43 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: How can I export styled Text from a FrontMost textfield?
-
- I have a field in a window generated with FrontMost. The Style and Font of the
- Text can be changed by the User. How can I save this Text so it can be opend
- in ClarisWorks without loosing the styling ?
-
- When I write a string with Tab-chars to a Textfield and retrieve it later,
- there are no longer any tabs!
-
- Andreas
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Wed, 21 Sep 1994 22:16:06 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andreas Heissenberger,HOL" <a.heissenberger@MAGNET.AT>
- Organization: The Personal Online Source
- Subject: How can I show a Progressbar during a calculation in FrontMost?
-
- I open a window - start a script located in the window - the script is
- changing the "setting of gauge "progress"" - but no changes are done to the
- window until the script has been finished. What do I have to do?
-
- open window "abc"
- tell window "abc" to DoCalc()
-
- Andreas
-
- --------------------------------------------------------
- sent via m a g n e t / +43-1-522-7-225 / info@magnet.at
- --------------------------------------------------------
- =========================================================================
- Date: Wed, 21 Sep 1994 21:15:23 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Buckman <shelby@CLARK.NET>
- Subject: LISTSERV list information home page
-
- I've set up a World Wide Web home page for LISTSERV lists. It
- features handy "reference" pages with lists grouped along certain
- topics, as well as a host of other information, such as how to
- join, the # of members, whether the archives are open, etc. I'm
- posting this announcement here because the www site has a page for
- Apple Computers.
-
- Its URL is "http://www.clark.net/pub/listserv/listserv.html" Use
- Mosaic, Lynx, WWW, Cello, etc. to view it.
-
- LISTSERV lists for the following topics are represented:
- Agriculture, Anthropology, Apple Computer, Art, Biology &
- Chemistry, Business, Computers, Curricula, Database, Ecology,
- Education, Food, Graphics, History, IBM, Internet & Bitnet, Law,
- Library, Literature & Writing, Mathematics, Medicine, Music, PC
- Software, Physics, Psychology & Philosophy, Religion, Science,
- Teaching Institutions, Technology, Unix, and VMS & VM.
-
- Here is what a typical entry looks like:
-
- > Group name: FOODWINE
- > Description: Discussion List for Food and Wine
- > Members: 444
- > Archive searching: for members only
- > Who can join: anyone
- > Country: USA
- > Site: Central Michigan University, Mt. Pleasant, MI 48859
- > Computerized administrator: listserv@cmuvm.csv.cmich.edu
- > Human administrator: foodwine-request@cmuvm.csv.cmich.edu
- > To send mail to the group write to: foodwine@cmuvm.csv.cmich.edu
-
- Write to me if you'd like more information.
-
- John
-
-
- =================================================================
- John Buckman - Logika Inc. - Walter Shelby Group Ltd.
- shelby@clark.net - Internet Software Developers and Consultants
-
- ftp:clark.net We created (1)InfoMagnet, the LISTSERV tool
- (/pub/magnet) (2)The Desktop Internet Reference (/pub/inetref)
- (3)Lotus Notes->html converter (in beta); (4)The LISTSERV home
- page (http://www.clark.net/pub/listserv/listserv.html)
-
- tel:(301)718-7840 fax:(301)913-9849 BBS:(301)718-7310
- =================================================================
- =========================================================================
- Date: Wed, 21 Sep 1994 23:12:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Nick Arnett <narnett@VERITY.COM>
- Subject: HTML list archive moving!
-
- As promised, I'm moving my HTML archives of this list (and others related
- to the Web, publishing and libraries) to a new, faster site at my new
- employer, Verity Inc. I'll keep the archive up at
- <URL:http://asearch.mccmedia.com/> for another week or two, but please
- start using the one at Verity, which can be reached from our home page,
- <URL://www.verity.com/>.
-
- You'll find things somewhat rearranged there and a couple of features are
- temporarily missing. There are no aliases to the top menus of the lists,
- and there's no full-text search yet. Okay, okay, I know that second one is
- ironic, considering that Verity has a great full-text search engine (if I
- say so myself), but don't worry, it won't be far behind... and it'll be
- great! We have some very cool things coming, including... oh, well, stay
- tuned.
-
- The Verity site is under constant improvement, so please bear with us if
- it's off-line occasionally. We'll do our best to minimize the down-time.
-
- The one improvement that you should notice immediately is SPEED. I'm
- switching from a Macintosh Quadra 605 over a 28.8 phone line to a very fast
- Sun workstation with a T-1 that's only two hops off a very fast backbone...
- We're still generating the files with a Mac, though. HyperCard remains my
- favorite prototyping environment.
-
- Feedback is encouraged. Please feel free to e-mail me or our Webmaster
- [webmaster@verity.com] with your comments.
-
- Nick Arnett
-
- --
- World-Wide Web Product Manager
- Verity Inc.
- Mountain View, California
- narnett@verity.com
- =========================================================================
- Date: Thu, 22 Sep 1994 10:44:27 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
- Subject: Help with EUDORA 2.1
-
- Is there anybody out there which has been able to start the Mail notification
- with the new version of EUDORA 2.1.
-
- It has am different AppleScript syntax, and I don't know how to change it
- so that the Eudora Notify Controller written from David L. Brown would
- still work.
-
- Can anybody help ?
-
-
- Thanks for any help.
-
- Rolf
-
- \|/
- (o o)
- ________________________________oOo__(_)__oOo_________________________________
- ___/\_ | Rolf Kocherhans Internet : rolfk@vetvir.unizh.ch
- / o \/| | University Inst.for Virology Telephone: (+41) 1 3651538
- / _| | Winterthurerstr. 266a Faximile : (+41) 1 3630140
- /_/\__/-\/ | 8057 Zurich SWITZERLAND
- ______________________________________________________________________________
- If it wasn't for Windows, we wouldn't have anything to compare Mac's to
- ______________________________________________________________________________
- =========================================================================
- Date: Thu, 22 Sep 1994 07:02:53 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: How can I show a Progressbar during a calculation in
- FrontMost?
-
- >I open a window - start a script located in the window - the script is
- >changing the "setting of gauge "progress"" - but no changes are done to the
- >window until the script has been finished. What do I have to do?
- >
- >open window "abc"
- >tell window "abc" to DoCalc()
-
- -- do this any time you want to update a window element
- draw gauge "progress" of window "abc"
-
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Thu, 22 Sep 1994 07:25:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: K J Fox <kjfox@MKE.AB.COM>
- Subject: 2 questions - NSF mounts & FMpro Server
-
- 2 questions:
-
- 1. Is there a way using AppleScript (some OSAX perhaps) to NSF mount a
- UNIX volume and share files using it?
-
- 2. Does anyone know if the Filemaker pro server is directly scriptable?
- We want to build a front-end using some script-aware thing (Facespan,
- HyperCard etc.) and pull records from a FMpro server's database without
- having to tunnel through FMpro on the user's machine.
-
- Thanks in advance,
- Ken
-
-
- ________________________________________________________________________
- Kenneth J. Fox | E-mail: kjfox@mke.ab.com (pref)
- Allen-Bradley Company | Phone: 414-382-3287 (V) 414-382-2742 (F)
- Rockwell Int'l | Pager: 414-256-9702
- Milwaukee, WI | Applelink: FOX.K
- =========================================================================
- Date: Thu, 22 Sep 1994 08:43:54 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: HTML list archive moving!
-
- > HyperCard remains my
- >favorite prototyping environment.
- >
- I'd be very interested in learning how you use HC to prototype HTML dox.
-
- =====================================================================
- Dr. Frank Lowney, Director, Regional Teacher Education Center
- System Administrator, The GC EduNET Project
- CBX 034, School of Education
- Georgia College, Milledgeville, GA 31061-0490
- Voice: (912) 453-5121 FAX: (912) 453-6582
- via GC EduNET, Georgia's Statewide K-12 Education Network, telnet to:
- gcedunet.peachnet.edu
- =====================================================================
- =========================================================================
- Date: Thu, 22 Sep 1994 07:47:56 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Wellems <mwellems@MIDWAY.UCHICAGO.EDU>
- Subject: Looking for Mac Print Screen Solution
-
- I am building an interactive, and would really like the user to be able to
- have a printout of the screen. Is there an external that can print the
- screen? I don't see anything about this in the manuals.
-
- * 0 *
- / \ * * Michael J. Wellems
- * / \ Adler Planetarium
- ---- _____ ---- 1300 S. Lake Shore Dr.
- |_____| | |_____| Chicago, Illinois 60605
- =========================================================================
- Date: Thu, 22 Sep 1994 10:16:57 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Kearney <wkearney@ACCESS.DIGEX.NET>
- Subject: DialogRunner author?
-
- I use the Tao of AppleScript's dialog runner, or at least, I'm trying to use it.
-
- It doesn't correctly support the return key. I want and editable text
- field that accepts multiple lines. This requires allowing a return to be
- entered in the field. This is something the Mac toolbox allows. The
- RETURN is NOT the ENTER. The Enter key is the only thing that's supposed
- to invoke the Default button, not the Return.
-
- I suppose it's a quick fix to make DialogRunner ignore the Return as the
- default button. But I can't reach the author, Chris Reed. His AOL account
- does not appear to function any longer.
-
- If you know how to reach him or know of a better dialog handler for
- AppleScript, please let me know.
-
- Yes, I know FaceSpam would do this, but why should I make it slower and
- HUGE just to get one dialog?
-
- Thanks!
-
- Bill
-
- Bill Kearney | wkearney@access.digex.net | copyright 1994
- Baltimore, MD USA | http://www.digex.net/~wkearney/ | W.G.Kearney
- (410) 235-4574 | ftp://ftp.digex.net/pub/access/wkearney/ |
- =========================================================================
- Date: Thu, 22 Sep 1994 08:51:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Roy S. Rapoport" <rsr@BERKSYS.COM>
- Subject: Automating Printer Selection
-
- Is there any way to reset your printer selection via AS? In other words, I'm
- looking for something that would automate going into the chooser, choosing
- 'LaserWriter' as the device, choosing the right zone, and choosing the right
- printer name...
-
- -roy
- =========================================================================
- Date: Thu, 22 Sep 1994 12:54:54 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Eudora 2.1 notify osax
-
- Many have posted that the 2.1 notify syntax was giving them problems...
- I've taken the Eudora Notification osax that was on gaea and updated it so
- it (almost) works correctly. The notification type is still not coming in
- correctly, but at least now you can use the same syntax as shown under
- Eudora 2.1's dictionary, and you *CAN* count messages!
-
- Here's a code snippet from a WORKING 2.1 notify script:
-
- on notice messages messageList -- respond to a Eudora Notification event
- local numnew
- set numnew to count messageList -- number of new messages to process
- end notice
-
- Just drop the osax into your scripting additions folder...
-
- I used Aete Editor b4 to edit the aete in the osax Eudor Notification. The
- new osax is called "Eudora Notification Rev 2" and is in the submissions
- directory for now.
-
- Enjoy.
-
- PS: I had to fix it for work, so I had a good reason to dig in...
- =========================================================================
- Date: Thu, 22 Sep 1994 10:09:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kirk Stork <kastork@NPS.NAVY.MIL>
- Subject: Re: HTML list archive moving!
-
- >> HyperCard remains my
- >>favorite prototyping environment.
- >>
- >I'd be very interested in learning how you use HC to prototype HTML dox.
- >
-
- I know of 3 ways to do HTML on the mac (apart from manually)
-
- Simple HTML Editor - A Hypercard Stack
- HTML Edit - A Hypercard Stand alone
- BB Edit HTML extensions
-
- I would be interested in finding out about other NON-Hypercard based HTML
- Editors.
-
- r/
-
- Kirk Stork
- kastork@nps.navy.mil
- =========================================================================
- Date: Thu, 22 Sep 1994 10:25:30 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Scriptable Finder Erase Command
-
- While working on some scriptable Finder glue for Frontier, I noticed an
- oddity in the erase command in Scriptable Finder (version 1.2 of the Finder
- Scripting Extension, as found in System 7.5).
-
- The command causes Finder to put up the usual pre-erase dialog.
- [Note...this means you should activate (in AppleScript) or use a
- bringToFront () (in Frontier) the Finder before sending it the erase
- command...Finder does not use the notification manager for the task.]
-
- Finder returns the object specifier (reference) for the disk you erase.
- The oddity arises if the user decides to rename the disk while erasing
- it...the reference returned is to the disk *under its old name*. Finder
- also seems to access each mounted disk looking for one with that name,
- before returning the "stale" reference.
-
- Use of erase in a script is perhaps marginal anyhow...with the above
- notes you can script around some problems. [One thing you might want to do
- with the returned reference is use it to eject the disk. Won't work if the
- user renamed the disk.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- =========================================================================
- Date: Thu, 22 Sep 1994 17:35:17 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Howard White <hwhite@CCS.NEU.EDU>
- Subject: Eudora 2.1 Upgrade
-
- Where is everyone getting the Eudora 2.1 upgrade from?
-
-
- Howard White, PC Tech. Coor.
- Northeastern University
- Office of VP Information Services
- 360 Huntington Ave
- 275 Richards Hall
- Boston, MA 02115
-
- Office Phone:617-373-4275
- Portable Phone:617-840-3881
- FAX: 617-373-2054
- http://h-white.acs.neu.edu/
- =========================================================================
- Date: Thu, 22 Sep 1994 18:08:32 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Duffield <duffiem@AA.WL.COM>
- Subject: Re: HTML list archive moving!
- In-Reply-To: Kirk Stork <kastork@NPS.NAVY.MIL> "Re: HTML list archive moving!"
- (Sep 22, 10:09am)
-
- On Sep 22, 10:09am, Kirk Stork wrote:
- > Subject: Re: HTML list archive moving!
- > >> HyperCard remains my
- > >>favorite prototyping environment.
- > >>
- > >I'd be very interested in learning how you use HC to prototype HTML dox.
- > >
- >
- > I know of 3 ways to do HTML on the mac (apart from manually)
- >
- > Simple HTML Editor - A Hypercard Stack
- > HTML Edit - A Hypercard Stand alone
- > BB Edit HTML extensions
- >
- > I would be interested in finding out about other NON-Hypercard based HTML
- > Editors.
- >
- > r/
- >
- > Kirk Stork
- > kastork@nps.navy.mil
- >-- End of excerpt from Kirk Stork
-
- Alpha V5.93 ships with an HTML mode. Give it a try!
-
-
- --
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark J. Duffield | duffiem@aa.wl.com
- Sr. Systems Specialist |
- Preclinical Scientific Computing | MIME Spoken here.
- Parke Davis Pharmaceutical Research |
- Ann Arbor, MI 48105 |
- =========================================================================
- Date: Thu, 22 Sep 1994 18:49:11 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andrew R. Mitchell" <mitchell@CIS.UMASSD.EDU>
- Subject: Apple Events & FileMaker Pro
-
- First, let me explain what I'm doing. I run the Web Server for UMass Dartmouth.
- I have written some scripts (Apple Script) to get information out of FileMaker
- Pro. The purpose of these scripts is to allow students to view the course
- catalog/course listings in a semi-custom (eventually fully-custom) manner.
- In other words I'm creating lots of HTML documents on the fly.
-
- I currently have working scripts, only the time taken to create the documents
- is way to long (minutes instead of seconds). So now I am trying to convert
- these scripts into either C/C++ or PASCAL code.
-
- I have figured out how to send simple events like Do Menu and Do Script, but I
- have yet to figure out how to get the data I need to perform the seaching I
- need to do into FM Pro using Apple Events. If anyone out there could give me
- some ideas and/or some sample code (C/C++/PASCAL) on how to build the
- appropriate object records it would be much appreciated.
-
- Thank you in advance for any help.
-
- Andrew
- -----------------------
- mitchell@cis.umassd.edu
- "Ours is not to wonder why, but instead to wonder why not!"
- =========================================================================
- Date: Fri, 23 Sep 1994 11:09:51 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Owen Watson <owen@RSNZ.GOVT.NZ>
- Subject: Eudora settings
-
- I'm having difficulty with changing Eudora settings via AppleScripts. I had
- a look at the Eudora dictionary, but all it has is Settings, with no syntax
- for how you change them.
-
- Specifically, I'd like to change Immediate Send to Off, and change the
- message window height to 90. (for all messages)
-
-
- _________________________________________________________________________
- Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
- Internet watson.o@rsnz.govt.nz Ph: +64 4 472 7421 Fax: +64 4 473 1841
- The gateway to New Zealand science: http://www.rsnz.govt.nz/
- =========================================================================
- Date: Thu, 22 Sep 1994 18:25:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Charles Wiltgen <cwiltgen@MCS.COM>
- Subject: Re: HTML list archive moving!
-
- >I would be interested in finding out about other NON-Hypercard based HTML
- >Editors.
-
- There is a read, honest-to-goodness HTML editor for the Mac.
-
- http://dragon.acadiau.ca:1667/~giles/HTML_Editor
-
- It's at 1.0. Please try it out and encourage the author to further develop it!
-
-
- --
- Charles Wiltgen "Love is a snowmobile racing across the tundra and
- cwiltgen@mcs.com then suddenly it flips over, pinning you underneath.
- (INTP) At night, the ice weasels come." - Nietzsche (Groening)
- World Wide Web http://www.mcs.net/~cwiltgen
- =========================================================================
- Date: Thu, 22 Sep 1994 20:06:12 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeff Boulter <boulter@BUCKNELL.EDU>
- Subject: Could someone look up how to export from PageMaker?
-
- Sorry, my Scripting Guide is still a few weeks in the mail and I need to
- write a script that will export some selected text as TEXT-ONLY.
-
- Thanks again,
-
- Jeff Boulter
-
- --
- Jeff Boulter boulter@bucknell.edu http://www.bucknell.edu/bucknellian/jeff
- =========================================================================
- Date: Thu, 22 Sep 1994 17:51:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brad Schrick <brad@APE.COM>
- Subject: Re: HTML Editors (was ...moving!)
-
- >Alpha V5.93 ships with an HTML mode. Give it a try!
-
- Alpha V5 of ... what? -- tia, brad@ape.com
- =========================================================================
- Date: Fri, 23 Sep 1994 13:59:00 +1200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lawrence D'Oliveiro, Waikato University, Hamilton,
- NZ" <LDO@WAIKATO.AC.NZ>
- Subject: Re: Apple Events & FileMaker Pro
-
- "Andrew R. Mitchell" <mitchell@CIS.UMASSD.EDU> writes:
-
- >I currently have working [AppleScript] scripts, only the time taken to create
- >the documents is way to long (minutes instead of seconds). So now I am trying
- >to convert these scripts into either C/C++ or PASCAL code.
- >
- >I have figured out how to send simple events like Do Menu and Do Script, but I
- >have yet to figure out how to get the data I need to perform the seaching I
- >need to do into FM Pro using Apple Events. If anyone out there could give me
- >some ideas and/or some sample code (C/C++/PASCAL) on how to build the
- >appropriate object records it would be much appreciated.
-
- My guess is, you won't see much of a speedup. I don't think you can build
- AppleEvent structures much faster than AppleScript can (remember, AppleScript
- scripts are already compiled). Judging from my own experience, I'd say most of
- the holdup would be in FileMaker's handling of the AppleEvents.
-
- The way to get the speedup would be to take FileMaker out of the equation.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Info & Tech Services Division fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
- =========================================================================
- Date: Thu, 22 Sep 1994 22:00:32 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Perry Smith <pedz@BGA.COM>
- Subject: Scriptable OCR
-
- My dream is to take a credit card bill and fax it to myself. Then have an
- OCR program along with various support programs to convert the fax to text,
- convert the text to a list of transactions and have the transactions
- entered into Quicken.
-
- So I figure the first step is to finish drinking my wine and the second
- step is to get an OCR program that works with Applescript so that I can
- automatically get it to convert the first and put the fields into records.
- So to make a short question longer than it needs to be: is there any
- recommendations for an OCR program that works with Applescript?
-
- Thanks,
-
- Perry Smith
- pedz@bga.com
- =========================================================================
- Date: Thu, 22 Sep 1994 22:18:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: HTML Editors (was ...moving!)
- In-Reply-To: Your message of "Thu, 22 Sep 94 17:51:40 -0900"
-
- >>Alpha V5.93 ships with an HTML mode. Give it a try!
- >
- >Alpha V5 of ... what? -- tia, brad@ape.com
-
- Alpha, the Programming and LaTex editor. You'll find it at
-
- ftp://cs.rice.edu//public/Alpha/Alpah.5.96.sit.bin
-
- pf
- =========================================================================
- Date: Thu, 22 Sep 1994 22:27:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Eudora 2.1 Upgrade
- In-Reply-To: Your message of "Thu, 22 Sep 94 17:35:17 EDT"
-
- Howard White asked...
-
- >Where is everyone getting the Eudora 2.1 upgrade from?
- >
-
- ftp://ftp.qualcomm.com/quest/mac/eudora/2.1/
- =========================================================================
- Date: Thu, 22 Sep 1994 22:29:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brad Schrick <brad@APE.COM>
- Subject: Re: HTML Editors (was ...moving!)
-
- >>Alpha V5 of ... what? -- tia, brad@ape.com
- >
- >Alpha, the Programming and LaTex editor. You'll find it at
- >
- >ftp://cs.rice.edu//public/Alpha/Alpah.5.96.sit.bin
-
- Fred, you're a wonder. I downloaded it and tried it, but I guess I'm in
- cruising mode and need something that's more WYSIWYG, or I'll just work
- with the text editors for now... I can see MacWeb becoming editable one
- day, but John Hardin may want a life this incarnation... thanks for
- keeping track of so much stuff -- Brad, brad@ape.com
- =========================================================================
- Date: Thu, 22 Sep 1994 23:22:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Preston Holmes <pholmes@UCSD.EDU>
- Subject: reloading the finder
-
- the first part, quitting it, is easy. But how do I reload it.
-
- I'm trying to do this so that a document which the finder just changed the
- type and creator of shows the proper icon. I do this now by inactivating
- then activating the finder through a control strip module. But how do I do
- this in a script (the restarting part). Everything I try results in the
- scripting system complaining that the finder is not an application.
-
- BTW, is there another way of having the icon updated (utils like Filetyper
- have no problem doing this).
-
- Note the icon is updated fine if I just try to change creator (ie a
- {"TEXT","ttxt"}->{"TEXT","MSWD"} works fine)
-
- a solution to both would be great but an answer to the first will provide a
- workaround...
-
- -Preston
-
-
- --
- Preston Holmes (h)619-453-9209
- Dept. of Neuroscience, UCSD
- pholmes@ucsd.edu NeuroWeb: "http://salk.edu/NeuroWeb/"
- =========================================================================
- Date: Fri, 23 Sep 1994 04:22:05 EDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Alexander <Mike.Alexander@UMICH.EDU>
- Subject: Re: reloading the finder
-
- >BTW, is there another way of having the icon updated (utils like Filetyper
- >have no problem doing this).
- >
-
- Here's a Frontier script that refreshes all open Finder windows:
-
- with objectModel, Finder {
- update(get(window[all]))}
-
- I have this in my OSAMenu folder for when the Finder gets confused.
-
- The definition of update (provided by the Import AETE script in the
- Commercial Developers suite) is as follows (the two lines starting with <
- are comments which don't look right in plain ASCII):
-
- on update (obj) {
- <Update the display of the specified object(s) to match
- <their on-disk representation
- return (appleEvent (Finder.id, 'fndr', 'fupd', '----',
- Finder.finderObj (obj)))}
-
- Finder.finderObj is a script I wrote which turns various things (like path
- names) into object descriptors. In this case it's a nop since you've
- already got a list of object descriptors.
-
- Doing this in AppleScript shouldn't be any harder than this.
-
- Mike Alexander Internet: mta@umich.edu
- University of Michigan America Online: MAlexander
- ITD - Research Systems AppleLink: UMICH
- =========================================================================
- Date: Fri, 23 Sep 1994 19:47:16 +1000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Danny Thomas <D.Thomas@VTHRC.UQ.EDU.AU>
- Subject: HTML WYSIWYG editor (was Re: HTML list archive moving!)
-
- >>I would be interested in finding out about other NON-Hypercard based HTML
- >>Editors.
- >
- >There is a read, honest-to-goodness HTML editor for the Mac.
- >
- > http://dragon.acadiau.ca:1667/~giles/HTML_Editor
- >
- >It's at 1.0. Please try it out and encourage the author to further
- >develop it!
-
- I must confess I didn't try it because as of a few months ago the WWW/HTML
- FAQs clearly state something along the lines of: "none of the cute WYSIWFG
- HTML editors on the Mac produce valid HTML"*. This applies for most Windows
- stuff as well; at least that falling into the free/shareware category. By
- all means try these out but before putting it up on your web-site I'd
- recommend running the output through something like SoftQuad's HoTMetaL for
- Windows (available for free). This loads an SGML description of the
- language, ie easily updated to reflect changes. The people behind this
- program have been in professional SGML market for several years, and I hope
- that gives their products some credibility. Any problems reported should be
- referred to the author of the Mac program you used and the feedback can
- encourage further development. SoftQuad are considering the introduction of
- a Macintosh version of HoTMetaL which, at a guess $100-300, appeals to a
- segment of people, but it would be nice for some free/shareware
- alternatives to exist as well. BTW I wasn't particularly enamoured by
- HoTMetaL's interface, too much like a structured editor for my liking.
- Unfortunately HTML has also been a somewhat evolving target and the
- clients also have their own unique interpretations and glitches. For
- example, the first bit of HTML I tried didn't display properly on MacMosaic
- 1.x or 2.00A6/8 or MacWeb. To be sure HoTMetaL pointed out several errors
- in my hand-generated code, but correcting these so HoTMetaL accepted the
- file and displayed it *as intended* didn't change the various ways the mac
- clients showed it. I guess the conservative approach is to
- A: run any HTML thru HoTMetaL so at least it is conforming
- B: confirm that popular clients display it in an acceptable fashion.
- It doesn't have to be perfect, just good enough, but if that isn't
- possible consider alternative ways of coding the structure
- and/or modify your goals.
- This maximizes your chance of the HTML working with both current clients
- and new ones in the future which are likely to be more restrictive and also
- conform closer to the 'standard'. It'll be nice when HTML+ (aka HTML 3)
- gets standardized and there's enough clients around to make it a practical
- choice.
-
- cheers,
- Danny Thomas (D.Thomas@vthrc.uq.edu.au)
-
- PS that initial FAQ quote probably doesn't refer to something like the
- BBEdit additions which are non-WYSIWYG and essentially leave the author to
- make thir own mistakes.
-
-
- * unfortunately this blanket unecommendation didn't list which Mac programs
- it was referring to, which versions produced buggy output nor what parts of
- HTML were incorrectly recorded. I didn't feel like spending time to find
- out.
- =========================================================================
- Date: Fri, 23 Sep 1994 06:52:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kiran Wagle <groo@NETCOM.COM>
- Subject: Re: HTML editing
-
- On 09/22/94, Kirk Stork wrote:
-
- > Simple HTML Editor - A Hypercard Stack
- > HTML Edit - A Hypercard Stand alone
- > BB Edit HTML extensions
-
- > I would be interested in finding out about other NON-Hypercard based HTML
-
- I have HTML Editor 1.0.0, by and (c) Rick Giles, found at NCSA. It's not
- small--1M on disk and 2M in memory (guess I'll have to break down and buy a
- 4M SIMM for my new Q630 before I get a MacTV card :-)) but it looks really
- nice--it'll show you a mockup with or without the tags showing, and it'll
- pass the text to MacWeb or Mosaic too. I've never edited any HTML pages
- myself, tho.
-
-
- --
- 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
- =========================================================================
- Date: Fri, 23 Sep 1994 07:42:09 -0400
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Duffield <duffiem@AA.WL.COM>
- Subject: Re: HTML Editors (was ...moving!)
- In-Reply-To: Brad Schrick <br